#danijel_58990
1 messages · Page 1 of 1 (latest)
Thanks a lot!
is this for one-off payments or for subscriptions?
Its for subsciptions, handled with firstly creating a paymentIntent
that's not recommended
for creating a subscription use this instead
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
for subscription discounts you can look at this guide
https://stripe.com/docs/billing/subscriptions/coupons
Ah sorry, we do handle subscriptions like that, but we still don't use checkout sessions
you don't need checkout for that
once the subscription is created you use this step https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#collect-payment from the doc I shared earlier
to collect the payment details
And what would be the best way to collect the promo code from the user on the frontend, is there a property i can enable on the payment element so that it supports an additional field for the promo code, or is this something that needs to be done with a custom input
Hey! Taking over for my colleague. No you can't collect promo code from the element, you need to add your own field for that
(with a custom input)
Got it, that was my main question, thanks a lot to you and @indigo berry also