Log in to Authorize.Net and obtain your credentials from the account settings.
For this integration, you will need the following credentials:
- Login ID
- Transaction Key
- Signature Key
- API Domain
- Hosted Page Domain
In Open LMS, go to:
Site Administration → Plugins → Local → Commerce → Authorize.Net payment provider
Enter your Authorize.Net credentials and configure required settings, such as supported currencies and transaction mode (test or live).
If you are testing, ensure that your Authorize.Net account is set to Sandbox mode and use the appropriate test credentials.
Once configured, save your settings.
Next, set Authorize.Net as the default payment provider:
Go to:
Site Administration → General → Commerce → Commerce settings
Under Default Payment Provider, select Authorize.Net and click Save changes.
To test the checkout flow:
Navigate to:https://your-site-url/local/commerce/browseproducts.php
Select a product and confirm that you are redirected to the Authorize.Net payment page. Use test card details to complete the transaction and verify that the purchase is successful.