#pankaj
1 messages · Page 1 of 1 (latest)
Hey! Bit of a broad question! Is there a specific use case you're trying to account for?
Actually i user this api to save card in customer account
but how to validate if card already exist when add new card
with this api.
The API /v1/checkout/sessions is for creating a Checkout Session. You can do that check. If you want that the created Checkout Session prefill that customer's previously saved card details, you need to pass the CustomerId when creating it:
https://stripe.com/docs/api/checkout/sessions/create?lang=curl#create_checkout_session-customer
So they can complete the payment with a 1-click checkout experience.
No i am not use this api for payment.
with this api used for only save card in customer account.
I'm not understanding your question. But for sure, you can't verify if a card exists for a customer when adding new card using Checkout Session