#jimin - Setup Intent
1 messages · Page 1 of 1 (latest)
Are you trying to attach the Payment Method to a customer?
Sorry for the delay, it's a little busy
Yeah i am trying to attach Payment Method to a customer
and also verifying i guess?
If you have created the Payment Method object in Stripe, then you can use the Setup Intent to attach it to a customer. Verification is one of the useful features of using the Stripe Payment Element though.
So if I am trying to set up the card for the first time, I will 1) create Payment Method and then 2) attach it to a customer using Setup Intent
And that would be the recommended flow if not using Payment Element
- why not using the Payment Element
- How are you creating the Payment Method in this case?
We are using some other platform to tokenize the data, so we will have to call the api
So you pass tokenized card data to /v1/payment_methods and get back a PM object?
yeah exactly
So in that case you'd pass the Customer ID and Payment Method ID to the Create Setup Intent API. In order to verify you'd probably want to set confirm=true: https://stripe.com/docs/api/setup_intents/create
Will the customer be on-session at this point?
I don't think so. It will be for future usage. So if they want to check out with the store card later in time we have it set up
In that case you'll want to be sure to pass usage=off_session