#imexoodeex
1 messages · Page 1 of 1 (latest)
I recommend starting here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
If you're just getting started, I recommend creating the subscription and using its latest_invoice.payment_intent.client_secret to render the PaymentElement
We also have a flow to render the PaymentElement prior to collecting payment details: https://stripe.com/docs/payments/accept-a-payment-deferred?platform=web&type=subscription
Developers usually look into this flow if they need to add some custom logic after creating a PaymentMethod (e.g., if they want to see what kind of payment method type a user intends to use for a given subscription payment)
yes, I made that way without knowing that it's some deferred way, but I think I will create a sub on load as you said, cuz it will be later easier to debug etc
thank you very much :3
Sure thing!