Reply
Highlighted
Member
Posts: 1
Registered: ‎11-22-2018

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

Highlighted
Posts: 2,765
Topics: 57
Kudos: 247
Blog Posts: 67
Registered: ‎12-05-2011

Re: Transaction Failed Error Code : 2

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