I am using the new Accept Hosted code in an iframe on a php page, and even with showReceipt is false, I still get the authorize.net receipt page. How do I bypass that and redirect to my own receipt page? I've searched pages and pages of files and documentation and I still don't get it. I need an example of using transactResponse, I don't have that in my page. Thanks.
04-18-2018 12:39 PM
Hello,
When you set "showReceipt" to false, you shouldn't get the receipt page, actually.
Since you are loading the Accept Payment Form in iFrame and want to skip the default receipt page, make sure you have "showReceipt" in <hostedPaymentReturnOptions> set to false and provide your own iFrameCommunicatorUrl to "url" in <hostedPaymentIFrameCommunicatorUrl>.
To implement your own iFrameCommunicatorUrl, please reference
https://github.com/AuthorizeNet/accept-sample-app/blob/master/IFrameCommunicator.html
For more information, you can reference
https://developer.authorize.net/api/reference/features/accept_hosted.html#Overview
https://developer.authorize.net/api/reference/#payment-transactions-get-an-accept-payment-page
Hope this helps!
Thanks,
Angie
04-19-2018 03:10 PM - edited 04-19-2018 03:11 PM