- 27 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Authorize.Net
- Updated on 27 Sep 2024
- 1 Minute to read
- Print
- DarkLight
Learn how to enable and configure Authorize.Net . Authorize.Net is a third-party payment gateway for accepting card payments from customers.
Enable payment gateway for Commerce
- From the application left navigation area, select Administration.
- From the top navigation bar, select Master Data Management.
- Scroll or search to locate Setting Boolean and select it from the list.
- Select Enable Payment Gateway Integration.
- Set the Setting Value Boolean switch to YES.
Create an Authorize.net sandbox account
- Go to Create sandbox account page.
- Follow instructions to create a sandbox account.
To obtain the production account, contact Authorize.Net directly.
- Sign into your sandbox Account, then go to API Credentials & Keys.
- Enter the API Login ID.
- Obtain the new transaction and signature keys.
Create destination on the AWS platform
From the application left navigation area, select Administration.
From the top navigation bar, select Destination Configuration.
Create a new destination and define its properties. For the following properties, use the values from the sandbox account you created in the previous step:
- anet.algorithm
- anet.loginName
- anet.signatureKey
- anet.transactionKey
Customize payment gateway behavior
From the application left navigation area, select Administration.
From the top navigation bar, select Master Data Management.
Scroll or search to locate Groovy Script and select it from the list.
Choose one of the following options:
Option 1
Select Payment Gateway Submission Params.
In Script File, attach the Groovy script, then select Save.
This Groovy script sends additional data to Authorize.net, such as the billing address or shipping cost. The script should return a nested map containing keys and values in the format expected by Authorize.net, as defined in Payment transactions .
Option 2
Select Payment Gateway Handle Status Check Result.
In Script File, attach the Groovy script, then select Save.
This Groovy script is called when Authorize.net has processed the payment for the order. The script stores the transaction ID. Data from Authorize.net is made available in the script in the
payload
variable.
User experience when making direct payments
On the checkout and re-order screens, users can choose from two types of payments:
- Purchase order
- Direct payment
Direct payment
The user enters credit card details on the direct payment screen.
For testing, use the following details:
- Card Type—Master Card
- Credit Card Number—5555 5555 5555 4444
- CVN—Any 3 digits
- Expiration Date—Any future date