I am developing a web app for a specific merchant and using Clover iframe in order to accept online orders. ECOMMERCE SERVICE API's (Pay for an order and Get an order) has been consumed in order to process the payment.
While consuming the Pay for an order (/orders/{orderId}/pay) API,
- The API returns a Charge reference (charge). By consuming the Get a charge API, I am receiving "paid" as true. Can I consider paid parameter as Payment done / Failed.
- In Charge detail, I can see that "captured" is returned as false. Should we consider this parameter for the Payment status.
- Order state is updated as locked and paymentState as OPEN. How do I determine that Payment is done.
Note: Our application is still under Development, Above API uses Sandbox account for the integration.