#xastey - final amount
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
You'll need to calculate this, the discount amount/implementation is up to you, but with the discounted amount you can refer to the example calculation here for the appropriate rates for a given payment method and country:
https://support.stripe.com/questions/passing-the-stripe-fee-on-to-customers
Note that this may not be allowed for your business depending on local regulations, you need to ensure you comply with the relevant laws.
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 ๐
How are you creating the payment, can you send me an example request? https://stripe.com/docs/api/request_ids like req_123
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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
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
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