Reply
Member
Posts: 4
Registered: ‎07-30-2019

Customizing error messages

Hi

I use Acccept hosted form Payment profile in our site and have integrated into our iframe. I use the communicator that send resize window response. We are using it to just get the Payment information and not doing any transaction. When ever there is a error message like "Page expired or duplicate payment exists" we need the communicator to respond so that we can customize the error message to more user understandable texts or to redirect to the page we needed it to go. Is there a way to get the rsponse using the communicator? We cannot use "transactresponse" as we are not using that profile. 

 

 

Thanks

Schitti

New Member
Posts: 5
Registered: ‎04-06-2021

Re: Customizing error messages

this a amazing blog keep it up .

Posts: 488
Topics: 0
Kudos: 96
Blog Posts: 0
Ideas: 0
Solutions: 40
Registered: ‎04-28-2017

Re: Customizing error messages

[ Edited ]

Hello @schitti_123,

 

One way would be to parse the message code from the API response.

"messages": {
    "resultCode": "Ok",
    "message": [
      {
        "code": "I00001",
        "text": "Successful."
      }

Depending on the message code, you could display your own appropriate message or redirect to the appropriate page for correcting the error.

Powered by NexWebSites.com -
Certified Authorize.net developers