We have QR Code ordering platform for dine-in for restaurants. The customer can sit in a restaurant, order food through our app on mobile (WEB-based), update the order, add new items to the order, and in the end, the customer can pay for an order through our app.
We want to do pre-authorize payment each time customers create. The question is, do we have a correct flow to follow, here are the three steps that we think we should follow:
1. Customer open/create order in our app, and we immediately create Clover order using /v3/merchants/{mId}/atomic_order/orders
2. We create payment record for an order using /v3/merchants/{mId}/orders/{orderId}/payments with initial total amount of order
3. We create an authorization on a Payment using /v3/merchants/{mId}/authorizations
The customer wants to finish the order(pay). Can we charge just by calling /v1/orders/{orderId}/pay? Is this ensure that we can charge for the authorized amount?
We need clarification. Do we have the proper flow and how to finish the last step, charging for the authorized amount?