Authorize.net
Authorize.net is a card payment gateway. The JoomInvoice plugins use Authorize.net Accept Hosted: the client pays on a form served by Authorize.net, and card details never pass through your site.
There are two plugins that work the same way: JoomInvoice - Payment - Authorize.net and JoomInvoice - Payment - Authorize.net Company. Use the second one when you want a second tab with another Authorize.net account, for example one for a second company. Most sites need only the first.
What you need
- An Authorize.net merchant account.
- HTTPS on your site.
- Joomla's Search Engine Friendly URLs turned on in System > Global Configuration. Authorize.net does not accept addresses with a query string, so the plugin uses SEF addresses for the return and webhook URLs.
- Invoices in the currency of your Authorize.net account.
Get your credentials
In the Authorize.net Merchant Interface, go to Account > API Credentials & Keys:
- Copy the API Login ID.
- Create a Transaction Key.
- Create a Signature Key.
Settings
| Setting | What to enter |
|---|---|
| Tab title | The tab name on the payment page. |
| Transaction currency code | The currency of your Authorize.net account, for example USD. Invoices in another currency show a message instead of the form. |
| API Login ID | From the Merchant Interface. |
| Signature Key | Required. Used to check the webhook notifications. |
| Transaction Key | Required. Used to request the payment form and to check transactions. |
| User Sandbox (test mode) | Yes uses the Authorize.net sandbox. |
| Require billing address | Yes makes the form ask for the client's billing address. |
| Description text | The text above the form. |
Set up the webhook
The payment is recorded when Authorize.net sends a signed webhook notification. Set it up, or payments are not marked as paid.
- In the Merchant Interface, go to Account > Webhooks and add an endpoint.
- Endpoint URL, for the first plugin:
https://example.com/index.php/component/joominvoice/webhook/payment_authorizenetIf your site uses URL rewriting (no
index.phpin addresses), leave outindex.php/. For the Company plugin, end the address withpayment_authorizenet2. - Select the events net.authorize.payment.authcapture.created, net.authorize.payment.capture.created and net.authorize.payment.priorAuthCapture.created.
- Set the endpoint to active and save.
When a notification arrives, the plugin checks its signature with your Signature Key, then asks Authorize.net for the transaction details and checks the amount, the currency and the invoice before it marks the payment as paid. You and the client then get a payment email.
Test
Set User Sandbox (test mode) to Yes with the credentials of an Authorize.net sandbox account, and add the webhook in the sandbox Merchant Interface. Pay a test invoice with one of Authorize.net's test card numbers.
Troubleshooting
- Authorize.Net payment is not configured. The API Login ID, Transaction Key or Signature Key is empty.
- This invoice is in ..., but the Authorize.Net account accepts ... only. Change the invoice currency, or use another payment method for it.
- Unable to start the Authorize.Net payment. The credentials are wrong, or the sandbox setting does not match the account.
- The client pays but the payment stays unpaid. Check the webhook address, that SEF URLs are on, and the webhook delivery history in the Merchant Interface.