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
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
07-05-2018 11:17 AM
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:-
Merchant website can redirect to Authorize.Net Accept Hosted Payment Page
Merchant can use Iframe / Authorize.Net popup to access the Authorize.Net Accept Hosted Payment 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:-
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