This repo shows how to integrate React Authorize Net with NextJS/React.
-
Get a Public Client Key and a API Login ID from Authorize.Net
-
Add them to a .env file located at root of your app
AUTHORIZENET_CLIENTKEY="REPLACE_WITH_CLIENT_KEY" AUTHORIZENET_LOGINID="REPLACE_WITH_LOGIN_ID"
-
Start the dev server
yarn dev
-
Start the ssl proxy
A SSL proxy is required to properly interact with Authorize.Net API
yarn ssl-proxy
This is optional but if you don't do it, you will get errors everytime you submit the form.
-
Launch the app
The app show now be available on https://localhost:3001
