Constants GATEMI_AUTHNET_*; functions, hooks and options gatemi_authnet_*; classes Gatemi_AuthNet_*. Everything below is applied in the plugin's code.
Gateway ids
| Id | Class |
|---|---|
gatemi_authnet |
Gatemi_AuthNet_Gateway — cards (Accept.js) |
gatemi_authnet_echeck |
Gatemi_AuthNet_ECheck_Gateway |
gatemi_authnet_googlepay |
Gatemi_AuthNet_GooglePay_Gateway |
Filters
Currencies
| Filter | Arguments | Default |
|---|---|---|
gatemi_authnet_supported_currencies |
$currencies |
AUD, CAD, DKK, EUR, GBP, NOK, NZD, PLN, SEK, USD — what Authorize.Net can process at all |
gatemi_authnet_cc_allowed_currencies |
$currencies, $gateway |
The store currency |
gatemi_authnet_echeck_allowed_currencies |
$currencies, $gateway |
USD |
gatemi_authnet_googlepay_allowed_currencies |
$currencies, $gateway |
USD |
A method is offered only when the currency is in both the supported list and its own allowed list. Invalid codes are dropped.
// Your Authorize.Net account settles in a currency the default list lacks.
add_filter( 'gatemi_authnet_supported_currencies', function ( $list ) {
$list[] = 'CHF';
return $list;
} );
gatemi_authnet_duplicate_window
Seconds within which Authorize.Net refuses an identical transaction ($seconds, $order). Default 120; never below 0. Lower it if genuine repeat orders for the same amount fall inside the window.
gatemi_authnet_load_public_styles
Whether the storefront stylesheet is loaded on this request ($needed, $gateway).
Actions
gatemi_authnet_webhook_{event_type}
Fires with the event's $payload for a verified webhook event the plugin does not handle itself. The plugin subscribes only to the event types it handles, so this fires for an event you added to the webhook yourself in Authorize.Net — for example gatemi_authnet_webhook_net.authorize.payment.authorization.created. The event type is used as is, dots included.
add_action( 'gatemi_authnet_webhook_net.authorize.payment.authorization.created', function ( $payload ) {
error_log( 'Authorization ' . ( $payload['id'] ?? '' ) );
} );
REST route
POST /wp-json/gatemi-authnet/v1/webhook — public (permission_callback is __return_true), trusted only after the X-ANET-Signature HMAC-SHA512 check against the current environment's Signature Key. Answers: 200 ok or duplicate_ignored, 400 missing_body / invalid_json / invalid_payload_or_signature, 401 unauthorized, 500 processing_error.
Order actions
gatemi_authnet_capture_authorized_payment — Capture Authorized Payment, added to woocommerce_order_actions for this plugin's orders that are On hold and carry _gatemi_authnet_auth_transaction_id.
Options
| Option | |
|---|---|
woocommerce_gatemi_authnet_settings |
Connection and card settings, including the API keys |
woocommerce_gatemi_authnet_echeck_settings |
eCheck settings |
woocommerce_gatemi_authnet_googlepay_settings |
Google Pay settings |
gatemi_authnet_public_client_key |
Accept.js Public Client Key per environment |
gatemi_authnet_anet_webhook_id_sandbox, gatemi_authnet_anet_webhook_id_live |
Registered webhook ids |
gatemi_authnet_activation_time, gatemi_authnet_next_show_time, gatemi_authnet_review_notice_hide_v1 |
The review request on the settings screen |
gatemi_authnet_wh_{md5} |
One per claimed webhook notification (autoload off, value 1) |
gatemi_authnet_wh_claims |
Index of claim → time taken, used to sweep claims older than two days |
Transients start with gatemi_authnet_. Uninstall always removes the claims and the transients; it removes the settings, keys, client keys, webhook ids and review-notice options only when remove_data_on_uninstall is yes.
Order meta
| Key | |
|---|---|
_gatemi_authnet_transaction_id |
The transaction id (also set as WooCommerce's transaction id) |
_gatemi_authnet_auth_transaction_id |
An authorization waiting to be captured |
_gatemi_authnet_transaction_type |
auth_only or auth_capture |
_gatemi_authnet_transaction_details |
Auth code, last four digits, card type, network transaction id |
_gatemi_authnet_held_for_review, _gatemi_authnet_held_transaction_id, _gatemi_authnet_held_transaction_type |
A payment held by fraud filters |
_gatemi_authnet_refund_txn_ids |
Refund transaction ids already recorded |
_gatemi_authnet_void_id, _gatemi_authnet_void_date, _gatemi_authnet_void_amount |
A void |
_gatemi_authnet_echeck_transaction_id |
An eCheck transaction |
_gatemi_authnet_token_id |
The saved card used (subscriptions, upsells) |
_gatemi_authnet_express_checkout |
Placed from the Google Pay express button |
_gatemi_authnet_unreconciled_capture |
A capture reported for a cancelled or failed order |
User meta
_gatemi_authnet_customer_profile_id_sandbox and _gatemi_authnet_customer_profile_id_live — the shopper's CIM customer profile id per environment. Saved cards are WooCommerce payment tokens of the gateway gatemi_authnet.
Scripts
acceptjs-handler.js (cards), acceptjs-echeck-handler.js, googlepay-handler.js, googlepay-express.js, and block integrations in assets/js/blocks/ for the card, eCheck, Google Pay and the Google Pay express button. They are plain JavaScript with no build step.
CSS classes
| Class | Element |
|---|---|
.gatemi_authnet-cvc-wrapper |
The CVC field with its icon |
.gatemi_authnet_full_width |
Full-width card fields |
.gatemi-authnet-echeck-help, .gatemi-authnet-echeck-tooltip |
eCheck help text |
.gatemi-authnet-gpay-express-wrap |
The classic express Google Pay button |
.gatemi-authnet-gpay-express-block-wrap |
The block express button |
.gatemi-authnet-gpay-overlay |
The overlay while a Google Pay payment completes |
.gatemi-authnet-proceed-to-checkout-button-separator |
The "or" line between the express button and Proceed to checkout |
