eric MC
eric MC

Reputation: 766

Can I check if a customer's card will be declined before charging with Stripe?

I have the need to check if a user's account will be declined should a certain amount be deducted without actually deducting the amount. I could delete and create new customers each time I need to do this for the same user thus returning an error if they can't support any charges, or I can wait until I actually charge them but this will cause pretty big issues for me.

I was curious if its possible to run a check against the Stripe API to check if their card will be declined after they already have a customer associated with it. I've been using the test number:

  4000000000000341

But this still requires that I attempt to charge them.

Any ideas?

Upvotes: 2

Views: 2920

Answers (1)

John Conde
John Conde

Reputation: 219794

There's no way to tell if a card will be declined unless you process it. This is because the decline can only come from the payment processor who gets it from the card issuing bank. So only by running a transaction can you find out if a card will be declined.

The closest you can come to validating a card for a purchase without actually completing a transaction is to do an Authorization Only transaction. This allows you to run a normal transaction in every way but you do not actually capture the funds. You "freeze" them and receive an authorization number which you use later to capture the transaction. But this still requires processing a transaction with the processor.

Upvotes: 11

Related Questions