#Steve-promocodes
1 messages · Page 1 of 1 (latest)
@cedar rivet as far as I know there's no great way unfortunately. I think all you can do really is pass the entered promo code to your backend, get the corresponding coupon by using https://stripe.com/docs/api/promotion_codes/list#list_promotion_code-code
and then use the upcoming invoice endpoint to get details of what the subscription payment would look like with the coupon applied, to return to your frontend (https://stripe.com/docs/api/invoices/upcoming#upcoming_invoice-discounts-coupon)