 |
 |
Showing the Correct "Approved" or "Declined" Response from Authorize.net
Displaying a "Success" or "Transaction Failed" Page
You can use the response from authorize.net to either show a thank you page or show a "payment incomplete" page with a link to go back and fill out the form again. The steps involved are: - Set up two autoresponder profiles, one named "failed" and one named "success". While testing, use the built in Post Submission Thank You page and dump all of the [Authorize_* variables/fields onto the page. This will help us to see what is coming back from authorize and to ensure the correct profile is being triggered.
- Next, create the Success Rule, that will display the "Success" Profile. The rule should check the [authorize_responsecode] field for a value of "Approved".
- The 2nd Rule, that will trigger the failure profile should check for "Error" in the [authorize_responsecode] field.
Once those rules and profiles are setup you can begin testing your form. Remember also, you can select "TESTMODE = TRUE" in the Authorize.net Profile Setup to run test transactions. The results from Authorize.net will help you ensure everything is setup and running smoothly.
HINT: On the "payment incomplete" page, you can use this code to create a link back to the form. The form will remain populated so the user does not need to enter all their information again. The code to put on your autoresponder page is:
<a href="javascript:history.go(-1)">Click here to go back and try again</a>.
Note: When adding this code in the post submission thank you page editor, you must first toggle to source code mode or you can optionally use the link menu to insert this code.
Return to KB Article Index
|
|
 |
 |
|
 |
|
 |
|
 |
|
 |
|
 |
"The Graphing data function is a very good tool which I use to keep up to date with where my business is coming from and what products are in greatest demand."
John Hunter
President & Founder
scotland-hostels.com
|
|
 |
"You guys have done a terrific job with ease of use, flexibility, and stability in one inexpensive package."
Shahid Shah
Marketing Manager
Netspective Corporation
|
|
 |
 |
Web Design Resources
Check out these other great sites.
|
|
|
|
|
 |