question

bhuvanmalik007 avatar image
bhuvanmalik007 asked David Marginian Deactivated edited

What is the best way to capture a charge on an already existing order?

I already have an order with items present on it, I want to close it out using the payment completed when the charge is captured.

e-commerce api
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

You can use the order pay endpoint to pay for an order. Note: there is no "charge" involved here (charges are for simple payments that are not related to orders). The orders/pay endpoint automatically captures the payment.

https://docs.clover.com/docs/ecommerce-accepting-payments#paying-for-an-order

https://docs.clover.com/reference/orders#postordersidpay

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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