Integration and Testing

Authorize.Net API questions and help with your payment integration.

Reply
Member
Posts: 1
Registered: ‎11-20-2013

Only generate error when making a transaction (not when registering a card)

I want to be able to use the following zip codes when testing my integration against Authorize.NET (CIM): http://developer.authorize.net/tools/errorgenerationguide/

 

The problem is that I dont want to make this check when I register a card, but only when I'm making the transaction. When I use a "decline" zip code I cant register my credit card and therefor I'm not able to test my transaction code and error checking. 

The credit card is registered via popup within Authorize.NET page and not from my side. 

 

Thanks. 

Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: Only generate error when making a transaction (not when registering a card)

you can either

1)on the create payment profile, set the validationMode to none

2)set the zip code to a non error zip, then on the CreateCustomerProfileTransaction use the extraOptions to pass a x_zip=?????