- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there any way to debug Silent Posts for ARBs? The documentation says: "You will also not be able to receive an ARB
subscription transaction Silent Post while using a test environment account."
Am I forced to implement and test the parsing of the Silent Posts by inducing a real payment for every try?
Thank you for your help!
Solved! Go to Solution.
12-07-2011 03:49 AM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can simulate a Silent Post submission by sending a POST request to your Silent Post Script. This should get you started:
<form action="http://www.yourdomain.com/silent-post.php" method="post"> <input type="hidden" name="x_response_code" value="1"/> <input type="hidden" name="x_response_subcode" value="1"/> <input type="hidden" name="x_response_reason_code" value="1"/> <input type="hidden" name="x_response_reason_text" value="This transaction has been approved."/> <input type="hidden" name="x_auth_code" value=""/> <input type="hidden" name="x_avs_code" value="P"/> <input type="hidden" name="x_trans_id" value="1821199455"/> <input type="hidden" name="x_invoice_num" value=""/> <input type="hidden" name="x_description" value=""/> <input type="hidden" name="x_amount" value="9.95"/> <input type="hidden" name="x_method" value="CC"/> <input type="hidden" name="x_type" value="auth_capture"/> <input type="hidden" name="x_cust_id" value="1"/> <input type="hidden" name="x_first_name" value="John"/> <input type="hidden" name="x_last_name" value="Smith"/> <input type="hidden" name="x_company" value=""/> <input type="hidden" name="x_address" value=""/> <input type="hidden" name="x_city" value=""/> <input type="hidden" name="x_state" value=""/> <input type="hidden" name="x_zip" value=""/> <input type="hidden" name="x_country" value=""/> <input type="hidden" name="x_phone" value=""/> <input type="hidden" name="x_fax" value=""/> <input type="hidden" name="x_email" value=""/> <input type="hidden" name="x_ship_to_first_name" value=""/> <input type="hidden" name="x_ship_to_last_name" value=""/> <input type="hidden" name="x_ship_to_company" value=""/> <input type="hidden" name="x_ship_to_address" value=""/> <input type="hidden" name="x_ship_to_city" value=""/> <input type="hidden" name="x_ship_to_state" value=""/> <input type="hidden" name="x_ship_to_zip" value=""/> <input type="hidden" name="x_ship_to_country" value=""/> <input type="hidden" name="x_tax" value="0.0000"/> <input type="hidden" name="x_duty" value="0.0000"/> <input type="hidden" name="x_freight" value="0.0000"/> <input type="hidden" name="x_tax_exempt" value="FALSE"/> <input type="hidden" name="x_po_num" value=""/> <input type="hidden" name="x_MD5_Hash" value="A375D35004547A91EE3B7AFA40B1E727"/> <input type="hidden" name="x_cavv_response" value=""/> <input type="hidden" name="x_test_request" value="false"/> <input type="hidden" name="x_subscription_id" value="365314"/> <input type="hidden" name="x_subscription_paynum" value="1"/> <input type="submit"/> </form>
-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger
NEW! Handling Authorize.Net's Webhooks with PHP
Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)
Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
12-07-2011 04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can simulate a Silent Post submission by sending a POST request to your Silent Post Script. This should get you started:
<form action="http://www.yourdomain.com/silent-post.php" method="post"> <input type="hidden" name="x_response_code" value="1"/> <input type="hidden" name="x_response_subcode" value="1"/> <input type="hidden" name="x_response_reason_code" value="1"/> <input type="hidden" name="x_response_reason_text" value="This transaction has been approved."/> <input type="hidden" name="x_auth_code" value=""/> <input type="hidden" name="x_avs_code" value="P"/> <input type="hidden" name="x_trans_id" value="1821199455"/> <input type="hidden" name="x_invoice_num" value=""/> <input type="hidden" name="x_description" value=""/> <input type="hidden" name="x_amount" value="9.95"/> <input type="hidden" name="x_method" value="CC"/> <input type="hidden" name="x_type" value="auth_capture"/> <input type="hidden" name="x_cust_id" value="1"/> <input type="hidden" name="x_first_name" value="John"/> <input type="hidden" name="x_last_name" value="Smith"/> <input type="hidden" name="x_company" value=""/> <input type="hidden" name="x_address" value=""/> <input type="hidden" name="x_city" value=""/> <input type="hidden" name="x_state" value=""/> <input type="hidden" name="x_zip" value=""/> <input type="hidden" name="x_country" value=""/> <input type="hidden" name="x_phone" value=""/> <input type="hidden" name="x_fax" value=""/> <input type="hidden" name="x_email" value=""/> <input type="hidden" name="x_ship_to_first_name" value=""/> <input type="hidden" name="x_ship_to_last_name" value=""/> <input type="hidden" name="x_ship_to_company" value=""/> <input type="hidden" name="x_ship_to_address" value=""/> <input type="hidden" name="x_ship_to_city" value=""/> <input type="hidden" name="x_ship_to_state" value=""/> <input type="hidden" name="x_ship_to_zip" value=""/> <input type="hidden" name="x_ship_to_country" value=""/> <input type="hidden" name="x_tax" value="0.0000"/> <input type="hidden" name="x_duty" value="0.0000"/> <input type="hidden" name="x_freight" value="0.0000"/> <input type="hidden" name="x_tax_exempt" value="FALSE"/> <input type="hidden" name="x_po_num" value=""/> <input type="hidden" name="x_MD5_Hash" value="A375D35004547A91EE3B7AFA40B1E727"/> <input type="hidden" name="x_cavv_response" value=""/> <input type="hidden" name="x_test_request" value="false"/> <input type="hidden" name="x_subscription_id" value="365314"/> <input type="hidden" name="x_subscription_paynum" value="1"/> <input type="submit"/> </form>
-------------------------------------------------------------------------------------------------------------------------------------------
John Conde :: Certified Authorize.Net Developer (Brainyminds) :: Official Authorize.Net Blogger
NEW! Handling Authorize.Net's Webhooks with PHP
Integrate Every Authorize.Net JSON API with One PHP Class (Sample code included)
Tutorials for integrating Authorize.Net with PHP: AIM, ARB, CIM, Silent Post
All About Authorize.Net's Silent Post
12-07-2011 04:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you send an AIM transaction through, the output fields in the silent post will be pretty much the same as for ARB. Test with that initially, then move it to the live account, set up a subscription for the following day, and log the output of $_POST to a text file. Make any minor adjustments and you're good to go.
12-07-2011 05:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For practical reasons I created a ready-to-use php script to simulate a silent post and do some debugging output. You can find it on Pastebin. Thanks for your help!
12-09-2011 03:03 AM