#heshiebee-display-promos
1 messages ยท Page 1 of 1 (latest)
Hi ๐ that's going to depend on the UI and customer experience that you want to achieve, we don't have recommendations for that.
So I would basically have to retrieve the promo code and do the math on the front end?
There is no way of previewing that discount via stripe before a customer pays?
Oh, you're talking about determining what the discount is, not how to display it. You can use this endpoint to retrieve a preview of an invoice, so you could pass the relevant information here and then review the results:
https://stripe.com/docs/api/invoices/upcoming
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Cool, i'll take a look
Seems like it may work for us, thx!
I'll follow up if I have any additional questions
Awesome, happy to help!