authorized_payment
This module provides integration between Drupal Webform and the powerful Authorize.Net payment gateway. It automatically generates the necessary payment fields within your Webform and processes payments using Authorize.Net.
After submitting the Webform, the payment will be processed through Authorize.Net, and the transaction details will appear in the Webform submissions.
REQUIREMENTS
------------
This module requires the following:
* Webform
* The Authorize.Net PHP SDK. If it's not installed by default, run:
composer require authorizenet/authorizenet
* An account with Authorize.Net
* If you want to use Authorize.Net in test mode, then you'll need to sign up
for an Authorize.Net sandbox account - https://developer.authorize.net/hello_world/sandbox.html
CONFIGURATION
-------------
Go to Home >> Structure >> Webform >> Authorize.net Configuration.
Authorize.net Configuration: set the API Login ID and TRANSACTION KEY in the Authorize.net Configuration Form.
Enable the payment setting on Webform follow the below steps.
Select the webform you'd like to use for payment.
1) Go to Home >> Structure >> Webform >> Example webform >> build >> settings >> Form.
2) At the bottom of the form settings page, got to the "Authorization Payment Field"
3) You will see two checkboxes:
- Enable Payment Field
- Recurring Payment Field
4) Click on the save button.
Configuring Webhooks for Recurring Payments
If you have selected the Recurring Payment option, follow these steps to configure webhooks in your Authorize.Net account:
1) Log in to your Authorize.Net account.
2) Navigate to Account > Settings.
3) Click on Webhooks, then click on Add Endpoint.
4) In the Endpoint URL, enter:
- https://[yourdomain]/admin/webhook
(Replace [yourdomain] with your actual site domain)
5) After that, enable the following events:
- Subscription Events
- Payment Events
6) Click Save.
Listing of one-time payments is available under: Web Services » One Time Payment List
Listing of recurring payments is available under: Web Services » Subscription Payment List