#cgy

1 messages · Page 1 of 1 (latest)

sharp flickerBOT
sick socket
#

Hi there, so basically there are two steps here.

  1. Create a SetupIntent to collect and save a payment method
  2. Create a PaymentIntent to charge your customer with the saved payment method/
spiral fjord
#

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 ?

sick socket
#

Step 2 can be completely off-session so you don't need to show a page.

spiral fjord
#

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 ?

sick socket
#

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.

spiral fjord
#

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.

sick socket
#

Sounds good to me 👍