#stickysitch
1 messages · Page 1 of 1 (latest)
What do you mean by "set up the payment intent"? If you're using Payment Element and Address Element for Subscriptions, you'd usually follow this flow: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
Maybe I've been a little confused. I'm using React and my understanding that an intent had to be created for a "client_secret" to supply to the Elements wrapper for it to work. With the way I have things setup, my user won't be created as a customer or subscriber until the submit button at checkout has been hit. I currently have a useEffect() hook creating a payment intent when the page is loaded for payment or billing change.
I think what ive done is a mixture of what you linked and this resourse: https://stripe.com/docs/payments/accept-a-payment-deferred?type=subscription
Ah, gotcha. I think the best workflow here is to use the Deferred Intents flow, which renders the Payment Element before you create a Payment Intent: https://stripe.com/docs/payments/accept-a-payment-deferred
Thank you very much for your time! I truly appreciate it!