Skip to main content

Testing Authorize.net with a Sandbox Account

ProRequires Events Manager Pro. Compare plans

An Authorize.net sandbox account behaves like a real merchant account but moves no money. Use one to check that bookings are approved and that refunds cancel them, before you switch a gateway to live mode. These steps apply to both the Authorize.net API gateway and the legacy Authorize.net AIM gateway.

  1. Sign up for a sandbox account at developer.authorize.net. It is separate from your live merchant account and has its own login.

  2. In the sandbox account, note the API Login ID and create a Transaction Key and a Signature Key.

  3. In WordPress, go to Events then Payment Gateways, open your Authorize.net gateway and enter the three values on the [Test] API Keys/Notifications tab. Click Save Changes.

  4. Check the banner above the tabs. If it doesn't say Test Mode Enabled, click Enable Test Mode.

  5. Activate the gateway if you haven't yet, then book a priced event on your site. Pay with one of the test card numbers in Authorize.net's testing guide, with any future expiry date.

  6. In Events then Bookings, check that the booking is Approved and has a Completed transaction. The transaction ID links to the payment in the sandbox.

While the gateway is in test mode, visitors see This gateway is currently in Test Mode, only test payment methods can be used. under the payment method. On a site that is already live, use Limited Test Mode on the test tab to keep test mode to yourself, as described in Test mode.

To test refunds, create the webhook in the sandbox account with the address shown on the Test tab.

If the card fields don't appear on the booking form, check that the gateway is Active. A gateway that needs card fields can't be a Quick Pay button, so Quick Pay Buttons are switched off automatically while it is active.

When you are done, enter your live values on the [Live] API Keys/Notifications tab, click Enable Live Mode, and delete your test bookings.