- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not able to get the response token and consequently not able to access the accept hosted page
Hi I am working on node.js and try to call the authorize.net test api "https://test.authorize.net/payment/payment". Issue is that i am getting token but I am not understanding how to append the token to redirect to authorize.net mean to call getAnAcceptPaymentPage. I request to you help me out. Share some code so that I to proceed.
==========================================================================
Reponse:-
{
}
07-03-2018 10:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @ankit
Have you see the sample app for Accept Hosted at https://github.com/AuthorizeNet/accept-sample-app
https://github.com/AuthorizeNet/accept-sample-app/blob/master/README-AcceptHosted.md
Hope it helps !!!
Thanks
Send feedback at developer_feedback@authorize.net
07-05-2018 11:17 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Anurag already provided good suggestion, still I want to know How you are integrating.
To integrate the Accept Hosted Payment Page , Merchant can use any of the following 3 methods:-
- Redirect
Merchant website can redirect to Authorize.Net Accept Hosted Payment Page
- Iframe / Authorize.Net popup
Merchant can use Iframe / Authorize.Net popup to access the Authorize.Net Accept Hosted Payment Page
- Iframe/Embedded to Merchants web page
Merchant can have embedded the Authorize.Net accept Hosted Payment Page inside the merchant’s webpage.
for First Redirect case here how you can implement:-
- Do a Form submit with action="https://test.authorize.net/payment/payment"
as below.
<!DOCTYPE html> <html> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"> <head> </head> <body> <form method="post" action="https://test.authorize.net/payment/payment" id="formAuthorizeNetTestPage" name="formAuthorizeNetTestPage"> <input type="hidden" name="token" value="Should be replaced with FormToken" /> Continue to Authorize.Net to Payment Page <button id="btnContinue">Continue to next page</button> </form> </body> </html>
I hope it will help.
Thanks,
07-05-2018 12:32 PM