#cgy
1 messages · Page 1 of 1 (latest)
Hi there, so basically there are two steps here.
- Create a SetupIntent to collect and save a payment method
- Create a PaymentIntent to charge your customer with the saved payment method/
Ok, I know it now. Emm, but the step 2 must need a page right ? Can it able to charge just not need to show this payment page ?
Step 2 can be completely off-session so you don't need to show a page.
Oh, that's great! But I still see your docs, it mentioned that some card would need auth. So there would be some situation I must show the page right ?
Note that an error could be thrown if authentication is required. In that case you'll need to bring your customer to your app and call handleCardAction to start the 3DS flow.
Ok, now I know the flow. I create a customer on Stripe, every time customer start our service I use SetupIntents, when service finished I make a off_session PaymentIntent to charge without customer any other operation on app. If the card need auth, go to 3DS flow. If succeed, only the first time customer need to fill the form to enter their card info.
Sounds good to me 👍