cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Can't validate a credit card

Our users can sign up for our products months before they are available. When we take their order, we want to take their credit card information and pass it to the Authorize.Net CIM, then charge the card more than 30 days later when the item is ready. All we initially want to do is verify that the credit card account exists. I have tried passing a zero dollar authorization through the API, but I get the error, "Amount is invalid." After searching, I read that just passing the card info into the CIM validates the card, but only when using the production environment. If that is the case, how do I test someone entering an invalid card in the sandbox? 

shaunroot
Member
1 ACCEPTED SOLUTION

Accepted Solutions

Hi @shaunroot

 

Your requirment over here is to validate the credit card while creating the Customer Profile.

So when you pass on the credit card information to CIM for profile creation, also pass the validationMode as liveMode like this 

 

<validationMode>liveMode</validationMode>

  

When you create a profile using liveMode, Authorize.Net will automatically submit a zero-dollar or one-cent transaction (depending on card type and processor support) to confirm the card number belongs to an active credit or debit account.  Only if the transaction was successful will the customer profile be created.

You can even test this in sandbox using the test cards numbers, please refer to our Sandbox Testing Guide  for more details on it.

 

Hope this Helps !

View solution in original post

kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert
3 REPLIES 3

Hi @shaunroot

 

Your requirment over here is to validate the credit card while creating the Customer Profile.

So when you pass on the credit card information to CIM for profile creation, also pass the validationMode as liveMode like this 

 

<validationMode>liveMode</validationMode>

  

When you create a profile using liveMode, Authorize.Net will automatically submit a zero-dollar or one-cent transaction (depending on card type and processor support) to confirm the card number belongs to an active credit or debit account.  Only if the transaction was successful will the customer profile be created.

You can even test this in sandbox using the test cards numbers, please refer to our Sandbox Testing Guide  for more details on it.

 

Hope this Helps !

kikmak42
Authorize.Net Expert Authorize.Net Expert
Authorize.Net Expert

This is exactly what I needed to know. Thanks!


@shaunroot wrote:

Our users can sign up for our products months before they are available. When we take their order, we want to take their credit card information and pass it to the Authorize.Net CIM, then charge the card more than 30 days later when the item is ready. All we initially want to do is verify that the credit card account exists. I have tried passing a zero dollar authorization through the API, but I get the error, "Amount is invalid." After searching, I read that just passing the card info into the CIM validates the card, but only when using the production environment. If that is the case, how do I test someone entering an invalid card in the sandbox? 


Did you ask in the context in Card validation checker then i use nanso cc in this website i can check card is good to go or not.

methewcraldk
Member