#disha

1 messages · Page 1 of 1 (latest)

teal hollowBOT
grave nymph
#

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

hushed cove
#

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

grave nymph
#

we collect card details first,
How do you do that? With a SetupIntent?

hushed cove
#

yes

grave nymph
#

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.

hushed cove
#

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

grave nymph
#

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.

hushed cove
#

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?

grave nymph
#

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.
hushed cove
#

hmm, I think your first point answers my question

#

thanks