Introduction Payment Gateway
There are many ways in which users can use conveniently order Spares and Consumables and Commerce is one of them. As companies today have many choices in how they are ordering (e.g. via Commerce / Self-Service, Call Center, EDI, Email, etc.), they also expect flexibility when choosing their preferred payment methods. With credit card payments, ACH / BAN transfers, and other options such as PayPal, Apple Pay, and so forth, they are being offered a variety of different methods and can choose their preferred one.
Additional Information about Authorize.net Payments
Additional information about the payment gateway provider and the product can be found here.
Enabling Payment Gateway for Commerce
In order to use this feature, under 'Administration' -> 'SettingBoolean' -> 'Enable Payment Gateway Integration' flag must be set to True:
Obtaining Authorize.net Account and Credentials
- To obtain a sandbox account, go to https://developer.authorize.net/hello_world/sandbox.html
To obtain the actual production account, please contact Authorize.Net directly.
- Go to Account then API Credentials & Keys.
- Enter the API Login ID.
- Obtain the new transaction and signature key.
Create destination on AWS platform
For systems hosted on SAP platform, a new destination needs to be configured in Subaccount level.
- From the application left navigation area, select Administration.
- From the top navigation bar, select Destination Configuration.
Customize payment gateway behavior
- From the application left navigation area, select Administration.
- From the top navigation bar, select Master Data Management.
- From the list, select Groovy Script.
- From the list, select Payment Gateway Submission Params.
This groovy script can be used to send additional data to Authorize.net, such as the billing address or shipping cost. This script should return a nested map containing keys and values in the format expected by Authorize.net, as defined in https://developer.authorize.net/api/reference/index.html#accept-suite-get-an-accept-payment-page
- Or select Payment Gateway Handle Status Check Result.
This groovy script will be called when Authorize.net has processed the payment for an order.This can be used to store the transaction ID. The data from Authorize.net is made available in the script in the “payload” variable
End-User Experience: Direct Payments
On the checkout and re-order screens, users can decide how the payments should be made (via Purchase Order or Direct Payment) as configured in the Commerce Administration here.
On the review screen, there will be a button Make Payment which will redirect the user to the respective payment screen shown in the previous section. The payment functionality is available in the checkout process, the review process, and the re-order process (see here for additional information: Process Overview: Checkout Process and here Process Overview: Order History).
During the Checkout, the following credit card details can be used for testing purposes:
Card Type | Master Card |
Credit Card Number | 5555 5555 5555 4444 |
CVN | Any 3 digits |
Expiration Date | Any future date |