#Lucian Durietz
1 messages · Page 1 of 1 (latest)
hi! hmm ,let me think. If you use Checkout to accept the promo code it will support that. Not sure if it's possible to build directly yourself
I believe if I use checkout the user will be already paying. What I need is to refresh the price I show when they insert the promo code :/
I wonder if I could send the code to an endpoint with a GET and have as an answer the new price?
the same with the price before promo code, can I do a GET with the price id and have as an answer the price?
I can't think of any way to do this really, except maybe using the Upcoming Invoice endpoint to preview an Invoice with the coupon related to the PromoCode applied(https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-discounts)
Thanks Karl!, I'll see if this works! Please let me know if you come across a better solution 🙂