Step 4. Debug with test orders

To test how your store works, use the debugging interface on the page Working with test orders in your merchant profile.

You can use the debugging interface to emulate the order process: add products to the shopping cart, select payment methods and delivery options, and create and cancel orders from a customer. In this case, requests are transmitted from the store to Bringly, and responses from Bringly to the store, in real time.

All orders created in the debugging interface are sent to the store with the fake parameter set to true so the store can differentiate between test orders and real ones.

Attention. Test orders do not incur charges, and errors in test orders do not cause the store to be disconnected from Bringly.

1. Create a new order

Open the Working with test orders page and go to New order:

  • Enter the region (city) where the customer is located.

  • Add items to the cart by clicking in the list of products.

  • Click Update in the second section.

Result: The Bringly service will get a request from the store using the method GET /campaigns/{campaignId}/orders/updates (Information about new and updated orders).

2. Accept an order

In the third section:

  • Indicate the delivery method and payment method.

  • Enter test customer data (address, first and last name, phone number, and so on).;

  • Click Submit order.

Result: The Bringly service will get a request from the store using the method PUT /campaigns/{campaignId}/orders/{orderId}/status (Changing the order status).

3. Receive payment

The created order is shown on the All orders tab with the status “unpaid”.

  • Click Pay within two hours after creating the order to emulate payment on behalf of the customer. The order status on the All orders tab changes to “processing”.

  • Don't perform any actions for two hours after creating an order, to emulate that the order hasn't been paid for by the customer.

Result: The Bringly service will get a request from the store using the method GET /campaigns/{campaignId}/orders/updates (Information about new and updated orders).

Attention. Since the customer is allowed two hours to make the payment, the store must be able to reserve items from the order in their warehouse during this time.

4. Cancel an order

  1. Go to the All orders tab and find the created order with the status “processing”.

  2. Click Cancel to emulate the customer canceling the order.

Result: The Bringly service will get a request from the store using the method GET /campaigns/{campaignId}/orders/updates (Information about new and updated orders).