#elthys-Subscription

1 messages · Page 1 of 1 (latest)

inner oyster
#

OK, you can use SetupIntent API to collect the payment method first, so that you can go through the 3DS authentication process (if necessary)

river briar
#

in my js, instead of call stripe.createPaymentMethod( CARD info), i call directly stripejs for setup intent ?

fresh gyro
#

Hi! Taking ober Jack Tan. So here the full process would be:

  1. Create the subscription on the backend witha .free trial
  2. Retreive the pending_setup_intent.client_secret (like mentioned above)
  3. Use the client_secret on the frontend with the Payment Element to collect payment information
  4. Call confirmSetup on the frontend to confirm the SetupIntent https://stripe.com/docs/js/setup_intents/confirm_setup