Reply
Member
Posts: 2
Registered: ‎07-01-2016

Silent post passing decline as success

Here is my php code which has been working fine for ARB payments when they are successful:

 

// Get the response code. 1 is success, 2 is decline, 3 is error
$response_code = (int)$_POST['x_response_code'];


if ($response_code == 1) {
// Approved!
..do important stuff here

 

However, a recent ARB transaction was declined, but the code still ran (i.e. $response_code == 1 when it should have been 2).

 

Did I miss something?

Posts: 2,319
Topics: 51
Kudos: 157
Blog Posts: 65
Registered: ‎12-05-2011

Re: Silent post passing decline as success

Hello @AndrewTraub

 

Can you provide the entire silent post to review?

 

Richard

--------

Webhooks are now available for Authorize.Net

Using SOAP, see our deprecation notice.
Check out Accept.js, our Javascript replacement for DPM.
Pro Tip: Never use test mode in the sandbox, instead use the Testing Guide.