Reply
Highlighted
New Member
Posts: 3
Registered: ‎07-12-2020

Where can I find minimal examples for Accept Hosted?

[ Edited ]

My goal is to have a simple button, called "Payment Form" or similar, and redirect users to a form hosted by Authorize.NET.

 

Where can I find high quality minimal examples for Accept Hosted? I'm following this documentation article: https://developer.authorize.net/api/reference/features/accept_hosted.html While reading the article, I'm very confused, since it keeps mentioning API calls such as "getHostedPaymentPageRequest", but I don't know where that API comes from. Am I missing a JavaScript library? All I want is a button to send users to a payment form.

 

I've also seen this article: https://developer.authorize.net/api/reference/features/acceptjs.html and I'm very confused since I don't know which JS library to add (if any), and none of the JS files linked there contain the text "getHostedPaymentPageRequest". Also, I noticed on this page that the "your own payment form" and "payment information form" buttons are broken.

 

I know about this repo: https://github.com/AuthorizeNet/accept-sample-app but it has been inactive since 2018, and I experienced many problems with it (I opened a few issues and opened a pull request).

 

P.S. Is there a repo or issue tracker for documentation issues?

Highlighted
All Star
Posts: 727
Registered: ‎11-05-2018

Re: Where can I find minimal examples for Accept Hosted?

@aaronfranke

The api is installed on your local/remote site with the sdk packages. You install them as dependencies for your project. You can then copy and paste the sample code from the API reference. That will allow you to do what you want. You make an api call and get a token, then post the token to auth.net with your redirect.
Highlighted
New Member
Posts: 3
Registered: ‎07-12-2020

Re: Where can I find minimal examples for Accept Hosted?

Which SDKs? How do I install them as dependencies, just by copying the files, or a Git submodule, or an NPM package, or what...?

 

And again, is there a fully working complete minimal example?

Highlighted
New Member
Posts: 1
Registered: ‎07-17-2020

Re: Where can I find minimal examples for Accept Hosted?

[ Edited ]

Minimal development required to accept MyWawaVisit payments within your online business mywawavisit.

Highlighted
New Member
Posts: 3
Registered: ‎07-12-2020

Re: Where can I find minimal examples for Accept Hosted?

What the heck is MyWawaVisit?

Highlighted
All Star
Posts: 727
Registered: ‎11-05-2018

Re: Where can I find minimal examples for Accept Hosted?

@aaronfranke

This forum has been taken over by bots/spammers. Ignore such nonsense as the above. You want to look here- https://github.com/AuthorizeNet/sdk-node. That has the instructions. Then go to the api reference and copy and paste sample code for node.js.