cancel
Showing results for 
Search instead for 
Did you mean: 

The credit card number is invalid

I use Sandbox and C# examples from sample codes for create customer profile and charge credit card. I put some credit card number with large number into this request fro creating customer profile and the request works good. But when I use next example from sample code to charge some sum (charge credit card example) from the same credit card (using the same large number of the credit card) there is an error: "The credit card number is invalid". Is there any idea how to solve this problem? 

5 REPLIES 5

Use this page for validation cards:

http://www.freeformatter.com/credit-card-number-generator-validator.html

 

If validation into this site is valid --> put this number into your code as correct. Everything works

Use the test card numbers at http://developer.authorize.net/hello_world/testing_guide/
Powered by NexWebSites.com -
Certified Authorize.net developers
NexusSoftware
Trusted Contributor

Ok. Thank you. You helped me)))

Do you know how to Check a credit card number that works, a credit card number that is valid? I will teach you how to do that right now. But have you seen a credit card that has more than 19 digits? Find out how to verify a credit card numbers and all you need to know about credit card validation here: https://www.worldbaze.com/credit-card-number-validation-and-generator/

worldbaze
Member

I am still getting "Error Code 6: The credit card number is invalid." in sandbox and i am using "5424000000000010" master card number (get it from http://developer.authorize.net/hello_world/testing_guide/) . I am getting below response from payment gateway side 

{
"responseCode": "3",
"authCode": "000000",
"avsResultCode": "P",
"cvvResultCode": "",
"cavvResultCode": "",
"transId": "0",
"refTransID": "",
"transHash": "",
"testRequest": "1",
"accountNumber": "XXXX0010",
"accountType": "",
"errors": {
"error": [
{
"errorCode": "6",
"errorText": "The credit card number is invalid."
}
]
},
"transHashSha2": "F6E48A1F8E78FD137A0BC6CE67C40D91C127D587BF5FA143B0B5772C672750C232D84BCA0481A219308E5D202E43563216D73DA552A334D22C9124502AE8FB28"
}

Please help

"

motilalsoni
Member