Integrating Accept.js into Your Website
If you currently use the Authorize.Net API to process payment transactions, the integration should be the same, with one additional step: before you POST the order/payment details to the merchant's server, you must make a call to the Accept library and pass the resulting data to your server rather than any credit card details.
See Sample Application on GitHub for a full working example.
Step 1. Include the Accept library in your page (the charset attribute "utf-8" is required):
NOTE: Make sure that the page that includes the Accept.js script is served using an HTTPS connection.
Step 2. Collect payment data in a form and intercept your form submission:
Step 3. Send the card data to Authorize.Net and receive the payment nonce in response.
Step 4. Use the returned data element in a form POST to your processing application.