Accept.JS
Prerequisites
The primary prerequisite is that you have created an account with Authorize.Net. If you want to use Authorize.Net in test mode, then you'll need to create a sandbox account.
Setting up the Authorize.Net Accept.JS module
Navigate to Admin » Commerce » Configuration » Payment » Payment gateways (/admin/commerce/config/payment-gateways) and click the Add payment gateway button.
Input a name for the configuration that helps you identify it (e.g., Authorize.Net) and select the Authorize.net (Accept.js) plugin.
Set the Mode to either Live (if you're ready to process payments) or Test (if you want first to test the integration). Input your Login ID, Transaction Key, and Client Key. (Sandbox credentials can be obtained from the Account tab under Security Settings > API Credentials & Keys. Unless you have changed it, the answer to the secret question is simon.)
Add any conditions you require for when the payment gateway is made available, e.g., by region, customer role, products purchased, etc.
After you've saved this payment gateway you can manage your checkout flow (/admin/commerce/config/checkout-flows) to set your preferred credit card transaction type:
- Authorization only (requires manual or automated capture after checkout)
- Authorization and capture
Additional Testing Information
Cardinal Cruise's test credit card number is 4000 0000 0000 0002. You can use any expiration date in the future and any appropriate length CVV code (usually three [3] digits).
Universal Test Credit Card Numbers
| Card Type | Card Number |
| American Express | 370000000000002 |
| Discover | 6011000000000012 |
| Visa | 4007000000027 |
| 4012888818888 | |
| 4111111111111111 | |
| JCB | 3088000000000017 |
| Diners Club/ Carte Blanche | 38000000000006 |
| MasterCard | 5424000000000015 |
| 2223000010309703 | |
| 2223000010309711 |
See the Authorize.Net Testing Guide for more information.
Help improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion