#disha
1 messages · Page 1 of 1 (latest)
Hi there!
If you already have a card stored in Stripe, then there's nothing to verify. You can just try to make a charge, and if it fails collect a new card
If you want to verify a brand new card, then you can use a SetupIntent https://support.stripe.com/questions/check-if-a-card-is-valid-without-a-charge
the problem is
we collect card details first, then start the service
at the end of the service, we are collecting payment based on consumption
so we do not have capability of getting another card entered from consumer
we collect card details first,
How do you do that? With a SetupIntent?
yes
Then there's not much else you can do. Did you read the article I shared above? Because it covers what happens when you use a SetupIntent.
re-checking
so when I call setup Intent API, it does not contain any card details, right?
then how would that help?
I think the client-secret returned as part of SetUpIntent is used in app to associate a card with
You create a SetupIntent to collect the card information from the user without making a chage, in order to save the card in Stripe.
When you do this, Stripe will do some validations to check the card is valid. Then later you can try to charge that card. However as mentioned in the link I shared:
The card information is verified when the card is saved, but it only verifies that the information is valid. It cannot check credit limits or account balances to guarantee that a card will have sufficient funds when you do decide to charge it.
yes, understood
but as I mentioned, we are not capturing card details all over again
we are just re-using the previously entered card
how can we validate the previously associated card?
I'm sorry but I don't understand your question.
- If you already have a card saved into Stripe, there's nothing you can do, the card was already validated by Stripe. so just try to charge it , but note that the payment can always fail.
- If you don't already have the card saved into Stripe, use a SetupIntent to collect the card information.