I have this hosted form:
$form .= "<FORM method='post' action='$url' id='paymentform'>";
$form .= "<INPUT type='hidden' name='x_login' value='$login' />";
$form .= "<INPUT type='hidden' name='x_amount' value='$amount' />";
$form .= "<INPUT type='hidden' name='x_description' value='$description' />";
$form .= "<INPUT type='hidden' name='x_invoice_num' value='$number' />";
$form .= "<INPUT type='hidden' name='x_fp_sequence' value='$sequence' />";
$form .= "<INPUT type='hidden' name='x_fp_timestamp' value='$timeStamp' />";
$form .= "<INPUT type='hidden' name='x_fp_hash' value='$fingerprint' />";
$form .= "<INPUT type='hidden' name='x_test_request' value='$testMode' />";
$form .= "<INPUT type='hidden' name='x_show_form' value='PAYMENT_FORM' />";
$form .= "<INPUT type='hidden' name='x_currency_code' value='$currency' />";
$form .= "<INPUT type='hidden' name='x_tax' value='$tax' />";
$form .= "<INPUT type='hidden' name='x_relay_response' value='TRUE' />";
$form .= "<INPUT type='hidden' name='x_receipt_link_url' value='$returnurl' />";
$form .= "<INPUT type='hidden' name='x_first_name' value='$first_name' />";
$form .= "<INPUT type='hidden' name='x_last_name' value='$last_name' />";
$form .= "<INPUT type='hidden' name='x_address' value='$address' />";
$form .= "<INPUT type='hidden' name='x_city' value='$city' />";
$form .= "<INPUT type='hidden' name='x_country' value='$country' />";
$form .= "<INPUT type='hidden' name='x_state' value='$state' />";
$form .= "<INPUT type='hidden' name='x_zip' value='$zip' />";
$form .= "<INPUT type='hidden' name='x_phone' value='$phone' />";
$form .= "<INPUT type='hidden' name='x_fax' value='$fax' />";
$form .= "<INPUT type='hidden' name='x_email' value='$email' />";
My question then is how do I get the transaction response from authorize.net when the form is redirected to:
https://test.authorize.net/gateway/transact.dll
also I cant use silent post since I am using local
Solved! Go to Solution.
06-21-2016 11:03 PM
@iamreb If you're using the Hosted Payment Form with Relay Response, you'd need to set x_relay_url to a public URL. It doesn't have to be a URL that's linked to your site, but it does need to be available for us to connect to. That URL can be associated with a script to write the Relay Response data to your local file.
You could, in theory, use the Authorize.Net API's transaction reporting functions to pull your transactions and store that in a local file as well. That won't tell you which transactions came from the Hosted Payment Form, but you could check details like invoice numbers to find matches, if you need.
06-22-2016 10:20 AM
For relay response read
https://developer.authorize.net/support/faqs/
and
and the SIM doc here
http://developer.authorize.net/api/upgrade_guide/
But it need a public address, can't be local
06-22-2016 04:38 AM - edited 06-22-2016 04:40 AM
@RaynorC1emen7 which of these can work for local? thank you
06-22-2016 05:19 AM
None. Relay response can't be send to a local page, have to be a public accessiable site as said in
06-22-2016 05:48 AM
@RaynorC1emen7 do you have any suggestions that would be applicable to my need? thank you once again
06-22-2016 05:59 AM
@iamreb If you're using the Hosted Payment Form with Relay Response, you'd need to set x_relay_url to a public URL. It doesn't have to be a URL that's linked to your site, but it does need to be available for us to connect to. That URL can be associated with a script to write the Relay Response data to your local file.
You could, in theory, use the Authorize.Net API's transaction reporting functions to pull your transactions and store that in a local file as well. That won't tell you which transactions came from the Hosted Payment Form, but you could check details like invoice numbers to find matches, if you need.
06-22-2016 10:20 AM
@Lilith so there's no way for me to get the transaction response for that specific payment if I am running it on local, and the other alternative would be to select all the transaction per batch and find it there. Will you help me find the appropriate documentation for retrieving those records? and are those records updated instantaneously after each transaction? Thank you
06-22-2016 10:11 PM
It under transaction reporting
here is the api reference
https://developer.authorize.net/api/reference/#transaction-reporting
and the doc
https://developer.authorize.net/api/reference/features/transaction_reporting.html
or just login to the merchant account and look for the last transaction
06-23-2016 04:50 AM - edited 06-23-2016 04:51 AM
@Lilith, @RaynorC1emen7 I created a live URL for the relay response but it just said that it timed out. I then tried using silent post as instructed here to fetch the transaction details of that transaction but it still got nothing from it. My URL is structured like this http://dev2.something.com/somewhere/returns/
Will this cause any problem for the silent post? Also to reiterate my main goal here is to get the information returned by authorize.net after the transaction is process i.e card status, customer id, invoice #, etc. basically everything that is stated here.
Would this be possible with silent form and with my current hosted form?
Thank you
06-24-2016 05:06 AM - edited 06-24-2016 05:14 AM
silent post is just like relay response, if relay response doesn't work, silent post would not work either
Did you read the https://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-... ?
06-24-2016 05:55 AM