#ggishant
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
Hi, thanks for the prompt response
unfortunately that's not possible in India
Can we reuse saved cards in India after they're saved through a paymentIntent object by just re-entering the CVV/CVC?
Yes, I'm using the Custom Payment Flow method. When I pass an existing PaymentMethod to the CreateIntentMethod it still asks for all the details including the CardNumber and Expiry on the Javascript SDK
would you mind sharing the code you're using?
Sure. The expected behaviour is as follows:
First Time Payment
- User clicks on buy now
- PaymentIntent is created
- User makes the payment through Stripe JS SDK and saves the card in progress
Non-first time payments:
- User selects the saved card from a list
- Use that card to make the payment and perform 3DS authentication after confirming the CVV
Okay, can you provide a high level overview on how this can be achieved?
- User selects the saved card from a list
you can list a customer's PM list from https://stripe.com/docs/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
you can then use the info on each PM (e.g. for cards https://stripe.com/docs/api/payment_methods/object#payment_method_object-card) to create your list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay. Now I have the Particular Card ID i want to make the payment from? What do I do next?
you don't really need to collect CVV/CVC though
not really
Okay, how do I handle action_required with confirm_card_payment method though?
it will take care of it for you