question

nathan.reid.go2 avatar image
nathan.reid.go2 asked ·

When using the dev pay api is the taxAmount supposed to be included in the amount field as well?

When using the developer pay api, will the amount charged to the card be equal to the `amount` or to the `amount` + `taxAmount`? Basically, I'm not sure if `taxAmount` is supposed to be included in the `amount` total or not.
For example, let's say I'm making a payment for an order. The total with tax is $5.80. The total tax is $0.80. Should I set the amount field to $5.00 or $5.80?
Thanks!
Developer Pay API
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

zgreathouse avatar image
zgreathouse answered ·
The amount field set on the payment record is the total amount of the order and is the value representing what the customer will be charged. The taxAmount is just specifying how much of that total was tax. The taxAmount on a line item is used to calculate the total tax amount of the order.
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.

Welcome to the
Clover Developer Community