question

qualwebs avatar image
qualwebs asked qualwebs answered

Manage orders and payment as single entity.

Hello,

We integrated clover APIs with our custom web system to manage categories, items, modifiers, and payment gateway.


We do a payment using clover gateway, an order created automatically on the clover system, But we wanted to push the order items and a few other information to that order.


Currently, we are pushing the order, line items, and other information using order API, But in that case, there are two orders for the same user,

1. created automatically with payment
2. created by our system using order API


Please let us know how to manage this case with a single order?


Thanks,
dev
qualwebs

OrdersPayments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian Deactivated answered

When asking questions it is critical to provide details. I will take a guess in this case. It sounds like you are using the charge endpoint to pay (which creates an order behind the scenes) and not the order/pay endpoint. What endpoint to use is clearly explained in our documentation - https://docs.clover.com/docs/ecommerce-accepting-payments. Please read this page and let us know if you have more questions.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

qualwebs avatar image
qualwebs answered

Ok, get that.

So, there is an option for pay for order. Will try with that.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community