Reply
Member
Posts: 3
Registered: ‎05-18-2017

how do i get transaction response in continue/return url for Accept Hosted.

Hi all,

 

I am implementing accept hosted via php. I have followed https://developer.authorize.net/api/reference/features/accept_hosted.html and successfully getting payment form. I am using redirect method for getting form. As per the reference guide i can get response on provided response url but have no idea how to do that.   

 

Since the response is POST type and in order to use the response i must know its variable name. So what is its variable name???

 

Please help.

 

 

Posts: 146
Topics: 0
Kudos: 28
Blog Posts: 0
Ideas: 0
Solutions: 10
Registered: ‎04-28-2017

Re: how do i get transaction response in continue/return url for Accept Hosted.

[ Edited ]

If the showReceipt parameter is true, system will display a receipt page after the transaction, with a "Continue" button that points back to the url provided in the url parameter.

Else if the value of the showReceipt parameter is false, the browser will return directly to the return URL.

When showReceipt is false, a return URL must be provided in the url parameter. Otherwise the receipt page will be shown.

Powered by NexWebSites.com -
Certified Authorize.net developers
Member
Posts: 3
Registered: ‎05-18-2017

Re: how do i get transaction response in continue/return url for Accept Hosted.

In both cases, when showReceipt is set to true or false, i am getting default receipt page https://test.authorize.net/payment/payment with continue button redirecting to the url i have specified in hostedPaymentReturnOptions.

 

However this is not the problem for me. In https://developer.authorize.net/api/reference/features/accept_hosted.html it is mentioned that 

---------------------------------------------------

"With any of the form integration methods, information specific to the customer can be passed back to the merchant’s server by embedding it in the continue/return URL or the cancel URL. By embedding information into the URL that is provided in the token request, the merchant server can identify the specific customer and transaction that has been processed when the customer returns. Any name-value pairs embedded in the URL should be URL-encoded to ensure correct processing in the form request."

------------------

 

I need to know how i can embedd the response in continue/return url???

 

Although i was digging into the problem and found out an alternate. When i specify an url in SILENT POST URL section of authorize.net account section. i get the response on that url after every transaction.

 

I want that response on the continue url. How can i get that? Advance thanks for any help.

 

 

Posts: 146
Topics: 0
Kudos: 28
Blog Posts: 0
Ideas: 0
Solutions: 10
Registered: ‎04-28-2017

Re: how do i get transaction response in continue/return url for Accept Hosted.

[ Edited ]

When not using an IFrame, the continue/return URL and cancel URL create buttons that when clicked cause the browser to perform a simple GET request to that URL. No other information about the transaction is provided directly. When using the redirect method, an Authorize.Net generated receipt will be shown and cannot be disabled.

 

Instead of the Silent Post method, you should use Webhooks, which will enable you to enroll in the events of your choice and designate a URL to receive the notifications as they occur.

Powered by NexWebSites.com -
Certified Authorize.net developers
Member
Posts: 3
Registered: ‎05-18-2017

Re: how do i get transaction response in continue/return url for Accept Hosted.

Is Webhooks the only way i can get transaction response when using redirect method???

 

Highlighted
Posts: 146
Topics: 0
Kudos: 28
Blog Posts: 0
Ideas: 0
Solutions: 10
Registered: ‎04-28-2017

Re: how do i get transaction response in continue/return url for Accept Hosted.

It's not the only way, but it is the best way.

Powered by NexWebSites.com -
Certified Authorize.net developers