user

Eslam Zedan

28 Feb 2022

strip error The card number is not a valid credit card number.

Laravel

I am using stripe payment with laravel it was working fine in the test mode.

after changing it to live mode any card I use for test strip returns 

The card number is not a valid credit card number.

the card is real and working fine any help

here is the response of stripe

 

{
 "error": {
 "code": "invalid_number",
 "doc_url": "//stripe.com/docs/error-codes/invalid-number",
 "message": "The card number is not a valid credit card number.",
 "param": "number",
 "type": "card_error"
 }
}

Comments

Rakshit

1 Mar 2022

This error generally occurred when Your card is real, but it uses the test API keys.

First, make sure, did you replace your test publishable and secret API keys before going live?

If yes, then check if online net banking (or International transaction if you are using a different currency) is allowed with your card. You can check by login into your bank account, or contact your bank customer care to enable the transactions.

Replies

Eslam Zedan

1 Mar 2022

I double-checked that I am using live keys not test mode

Rakshit

1 Mar 2022

Can you try with another card, if possible? I doubt with currency.

The issue can be from different card types other than, Mastercard, visa, discover, or Amex. Your location and currency also matter according to your government rules, so please revise them.


If you are facing the same issue, you can contact customer care / chat support for stripe directly. They can rectify the issue.

Shilpa

1 Mar 2022

github

It means, The card number is no longer valid by Stripe and their APIs, so Stripe is declining the transaction.  Visit here on official stripe documents or ask stripe support that why was your transaction declined?

 

Which card are you using?

© 2024 Copyrights reserved for web-brackets.com