#tomh0027
1 messages · Page 1 of 1 (latest)
I followed this doc here to integrate subscription
https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription
but I am not sure how to apply promotion code
Do you want to apply it via API, or do you want customers to be able to paste it into a form?
paste into a form
You will need to re-calculate the amount and set it in the Payment Element first.
By the way, why are you using this exact approach?
This one might be simpler in your case: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
You will create a Subscription first and then display a Payment Element.
In any case, you apply the promo code in this field: https://stripe.com/docs/api/subscriptions/update#update_subscription-promotion_code
no way to apply promo code at the time of creating subscription?
pass this API id to the parameter?
Yes.