Our appication is used by multiple conventions that use Square for their payment clearing house.
In our application we have the concept of a payment plan.
This is not a subscription item. It allows a user to pay for a custom order (we do not use a catalog) over time, by paying all the taxes and non plan items when the plan is set up and then make payments against the plan.
Alas:When you make a payment, with autocomplete = false, it authorizes it but does not collect it.
Calling payment complete is supposed to collect it (move it from AUTHORIZED to COMPLETED).
However, doing so on a partial order causes it to say the payment total does not match the order total. In this case that is correct.
We need to collect each payment as it is made, and then when the order is totally paid we need to complete the order.
We need one of two ways to make this possible:
- Create a true post tax calculation discount. Alas the ones that say they are post sales tax computation are not. We can then use this deferral discount to allow the payment plan be marked paid as the initial down payment.
2. And our preferred method: Split the function of Payment Complete from Order Complete allowing us to make each individual payment as complete and keep the order open until the payment plan is paid in full. Right now, while searches of the API docs indicate you can do this, it is not allowed.
Then we can use paycomplete to mark the payment as accepted and allow it to complete, adjusting the remaining balance in the order.
And we can then use payOrder to mark the order finally complete with all the payments that attached to it.
Invoicing is not applicable here because we are a unified interace. We allow the user to pay when they want (within limits) and to pay more than the minumum payment , for which we recast the payment plan to reduce the payments over the remaining time. Plus with each payment we mark the items partially paid (updating the amount) so if the plan is cancelld (due to not paying it on time), the items are the properly partly paid in our database and they can just pay the remainder in full if they wish to complete them.
thanks
Syd Weinstein
ConTroll Registraiton System
(Used by Philcon amont other conventions)