#xastey - final amount

1 messages ยท Page 1 of 1 (latest)

night helm
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐Ÿ™‚

#

Note that this may not be allowed for your business depending on local regulations, you need to ensure you comply with the relevant laws.

vale birch
#

Thats where we run into an issue... it seems the coupon is applied to the full amount

#

So say we have a product thats $100... with a 50% discount.. Ideally we would want to charge the user $50 + 2.9% +.30 when using USD

#

But doing a charge of such returns the following
(100 + 2.9% +.30) *50 % which gives a different net amount

#

I'm assuming this is the way it has to be but wanted to confirm so I have something to go back to our stakeholders about this request ๐Ÿ™‚

night helm
vale birch
#

via invoices req_APHt4DasaVbW8Z

#

actual wrong request one second

#

req_APHt4DasaVbW8Z here you go

#

and req_RSv3rUUg0qN2Kr

#

the last is the /v1/invoices/<id>/pay request

night helm
#

Yes, when using invoices the discount will apply to the overall amount of the invoice

#

This appears to be expected based on the amounts you used

#

If you want a different amount, you should calculate that and use that amount

vale birch
#

gotcha so its expected behavior. The issue is that due to this we are having a small difference in total amount charged (a few cents or so) . I'll do more research on our current code and see if there are any bugs with it thats causing the difference

night helm
#

I meant its because you set the invoice amount to say 102$ then apply a 50% discount, so discount 51$ and end up with 51$

#

The discount applies to the full invoice amount