cancel
Showing results for 
Search instead for 
Did you mean: 

retrieving transaction query report from a hosted form

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

iamreb
Contributor
1 ACCEPTED SOLUTION

Accepted Solutions

@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.

--
"Move fast and break things," out. "Move carefully and fix what you break," in.

View solution in original post

13 REPLIES 13
RaynorC1emen7
Expert

@RaynorC1emen7 which of these can work for local? thank you

None. Relay response can't be send to a local page, have to be a public accessiable site as said in

https://community.developer.authorize.net/t5/The-Authorize-Net-Developer-Blog/Relay-Response-Basics-...

  • If the merchant’s Web server is not available on the public Internet, has authentication enabled, or if the Relay URL uses a non-standard port for HTTP or HTTPS traffic, Relay Response timeouts will occur. Authorize.Net will not have any means to connect to your server or authenticate itself on your server, and can only use ports 80 and 443 for all Web traffic.

@RaynorC1emen7 do you have any suggestions that would be applicable to my need? thank you once again

@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.

--
"Move fast and break things," out. "Move carefully and fix what you break," in.

@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

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

@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

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-... ?