cancel
Showing results for 
Search instead for 
Did you mean: 

Transaction Failed Error Code : 2

Am getting error code 2 on my payment integration, whenever I process payment with a live card on my website with merchant API credentials. My credentials are live. 

 

In SANDBOX env everything is working fine. My test card are fine and am getting sucess with transaction ID.

 

But when I tried live API credentials, am getting Error Code 2, payment declined. The Same card is working fine while using directly on Authorize.net payment process.

 

I followed this CodeMentor tutorial for Authorize.net and Official Developer guide for the Authorize.net.

 

My production enviroment too set as PRODUCTION and my API endpoint for PRODUCTION is https://api2.authorize.net 

 

Which is provided in the sample code. Do I need to change that to https://api.authorize.net/xml/v1/request.api to accept the payments.?


Thanks

shashank
Member
1 REPLY 1

Hello @shashank

 

A transaction response of 2 is a decline by the issuing bank.  You'll need to work with your merchant service provider to learn more.  We don't receive any additional details for a decline.

 

Richard

RichardH
Administrator Administrator
Administrator