question

morenoh149 avatar image
morenoh149 asked ·

How to mark Order as paid

I'm implementing https://docs.clover.com/clover-platform/docs/creat...

How do I let a custom tender mark an order as paid or advance the sale app to the payment success screen (where the device asks "How would the customer like their receipt?")?
Orders
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Jeffrey Blattman avatar image
Jeffrey Blattman answered ·
There's no concept of marking an order paid. An order is paid when it contains a payment or payments that total to the total of the order. There should be nothing for you to do other than return success from your tender. The order might not be fully paid at that point because of a split payment of some sort, but that's not your concern as a tender; the tender approves or denies the amount it is asked.
1 comment Share
10 |2000 characters needed characters left characters exceeded

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

(quick addition to this answer)

When you close out a custom tender with STATUS_OK a payment record is automatically created on the order. (You can verify this using the Orders API, or viewing the Order within the Orders app.) Additionally, when a payment (partial payment or full payment) is applied to an order it changes the order's status to "closed."

2 Likes 2 · ·

Welcome to the
Clover Developer Community