An Authorize.Net payment gateway integration plugin for the MyAdmin hosting management platform. This package provides complete credit card processing capabilities including charging, authorization, refund, void, and card verification workflows through the Authorize.Net AIM (Advanced Integration Method) API.
- Credit card processing via Authorize.Net AIM gateway (AUTH_CAPTURE and AUTH_ONLY)
- Refunds and voids for completed transactions through the
AuthorizeNetCCclass - Card validation supporting Visa, MasterCard, AMEX, Discover, JCB, Diners Club, China UnionPay, Maestro, Laser, and InstaPayment schemes
- Two-charge card verification for new credit cards added to customer accounts
- Card management UI for customers to add, remove, verify, and set primary billing cards
- Admin tools for enabling/disabling CC billing, whitelist management, transaction viewing, and refund processing
- Authorize.Net response parsing with full CSV field mapping and three-strategy parser (full regex, partial regex, CSV fallback)
- Security features including CSRF protection on all state-changing operations, ACL-based admin access control, and automatic credential stripping from log entries
- PHP >= 8.0
- ext-soap
- ext-curl
- ext-mbstring
- Symfony EventDispatcher ^5.0
- MyAdmin plugin infrastructure
Install via Composer:
composer require detain/myadmin-authorizenet-paymentsThe plugin registers itself with the MyAdmin event dispatcher through Plugin::getHooks(), which binds:
system.settings-- registers Authorize.Net configuration fields (login, password, API key, referrer)function.requirements-- registers all function and page requirements for lazy loading
The plugin uses the following settings (configurable through MyAdmin admin panel under Billing > Authorize.Net):
| Setting | Description |
|---|---|
authorizenet_enable |
Enable or disable Authorize.Net processing |
authorizenet_login |
API login name |
authorizenet_password |
API password |
authorizenet_key |
API transaction key |
authorizenet_referrer |
Optional referrer URL |
composer install
vendor/bin/phpunitTo generate a coverage report:
vendor/bin/phpunit --coverage-html coverage/This package is licensed under the LGPL-2.1 license.