Hi everyone, we need your help.
We have an app for food ordering. Customer is able to sit in restaurant, order a food trough our app on mobile (which is WEB based), can update order, add new items to the order and on the end customer can pay for an order trough our app. Current flow is:
We have an app for food ordering. Customer is able to sit in restaurant, order a food trough our app on mobile (which is WEB based), can update order, add new items to the order and on the end customer can pay for an order trough our app. Current flow is:
-
- Customer open/create order which we keep in our database
- Customer update order which we keep in our database
- When customer wants to finish ordering we do:
- Create order on clover using
- POST /v3/merchants/{mId}/atomic_order/orders
- We charge order using
- POST /v1/orders/{orderId}/pay
What we want to achieve next is to authorize payment. We are not sure do we have correct flow to follow.
-
- Customer open/create order and we immediately create clover order using
- POST /v3/merchants/{mId}/atomic_order/orders
- We create payment record for an order using
- POST /v3/merchants/{mId}/orders/{orderId}/payments
- We create an authorization on a Payment using
- POST /v3/merchants/{mId}/authorizations
- Customer update order, we update clover order using
- POST /v3/merchants/{mId}/orders/{orderId}/bulk_line_items
- We update an authorization on a Payment using
- POST /v3/merchants/{mId}/authorizations/{authId}
- Customer wants to finish ordering, are we able to charge on a same way as we do now by calling /v1/orders/{orderId}/pay ? Is this ensure that we can charge for authorized amount?
We need clarification do we have right flow and how to finish last step, charging for authorized amount?!