Reply
Member
Posts: 1
Registered: ‎10-08-2017

Hosted Form decline error code and message.

I have implemented the hosted form using the Iframe Communicator (ifcommunicator.html and C#).

 

How do I capture the response when a credit card is decline?

 

I don't have problems getting the response when a credit card was authorize, but now I need to save the error code and message submitted by authorize.net when a credit card is not charged.

 

Thank you in advance for your time reading this and offering suggestions.

Member
Posts: 1
Registered: ‎01-11-2018

Re: Hosted Form decline error code and message.

Has anyone found a solution for this.  I need a response to mark my orders as "payment failed," but I do not get a declined response?

Highlighted
Authorize.Net Expert
Posts: 76
Registered: ‎11-16-2017

Re: Hosted Form decline error code and message.

[ Edited ]

For the IFrame, If sendReceipt is set to False, you will be able to get the response code in transactResponse object.

Please check the below link for the same - under Held Transactions Section.

https://developer.authorize.net/api/reference/features/accept_hosted.html#getHostedPaymentPageReques...

 

-Bhavana