#liuzhibin
1 messages · Page 1 of 1 (latest)
hello @proper pulsar! could you elaborate a bit more on what you mean by binding a credit card?
hey
Don't know how to bind your credit card while going through the 3ds V2 payment process
😢
do you mean attach the card to a customer?
I am currently using Stripe's iOS 17.0.3 version
But I don’t know how STPPaymentHandler goes through the 3DSv2 process
Is there a demo for STPPaymentOptionsViewController to pass through the 3DSv2 process?
yes
Realize the payment process: the server creates paymentIntent, app gets client_secret, then confirmPayment, and finally notify the back-end capture. I want to ask how I can bind the card in this process
when you create the PaymentIntent, include the customer [0] and setup_future_usage=true [1]
[0] https://stripe.com/docs/api/payment_intents/create#create_payment_intent-customer
[1] https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage
after successful payment, the card will automatically be attached to the customer
No paymentMethodId is required when creating paymentIntent?
it isn't required, you can collect that piece of information in the frontend using stripe.js (elements)
it sounds like that's what you're doing already
OK, thank you so much!!!
you're welcome, feel free to reach out again if you face any issues!