We're sorry, your transaction could not be completed for the following reason:<br /> <span><?php echo(AuthNet_Result("Response Reason Text")) ?>
I tried that code in checkout_failure.php and it still didn't work ... I must be missing something. Is there an include I need to put at the top of the checkout_failure page in order for it to access this information?
In other words how do I make sure php has access to the AuthNet_Result function and how do I make sure that it's initialized properly (in the sense of getting the authnet response assigned to the variables).
I'm brand new to all of this so please assume that I don't know anything :-)
I have x_test_request set to FALSE and x_relay_response set to TRUE in confirm.php. Is there anything else I need to set? Is there anything I need to configure in my authorize.net account settings?
I'm using the test card number 4222222222222 to make it fail.