🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials November 5, 2026

How to Accept Moneris Payments on a WordPress Form (Gravity Forms Tutorial)

GravityExtra
How to Accept Moneris Payments on a WordPress Form (Gravity Forms Tutorial)

Moneris is the card processor a large share of Canadian businesses already use, but connecting it to a WordPress form usually means a custom integration or a redirect to another site. If your forms run on Gravity Forms, you can take the card on the form itself, keep card numbers off your server, and manage the payment from the entry. This tutorial shows how to accept Moneris payments on a WordPress form with the Gravity Forms Moneris Payment Premium Add-on, from choosing your Moneris platform to refunding a customer.

What you need

A Moneris merchant account in Canada, Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer, a public site and a valid add-on licence. Amounts are in Canadian dollars (CAD). Want the big picture first? Read our full overview of Moneris payments in Gravity Forms.

Step 1: Choose your Moneris platform

Moneris offers two ways to connect, and the add-on supports both. Pick the one that matches the credentials you already have.

  • Moneris API uses a Merchant ID plus a Client ID and Client Secret. It supports one-time payments and Moneris-managed subscriptions.
  • Moneris Gateway (classic) uses a Store ID and an API Token. It supports one-time payments and pre-authorizations, but not subscriptions.

If you are not sure, look at what Moneris gave you. A Store ID and API Token means classic. A Merchant ID with Client ID and Secret means the Moneris API. The platform is a single choice in Forms → Settings → Moneris, so you can change it later.

Step 2: Connect in sandbox mode

  1. Install and activate the add-on, then enter your licence under Forms → Settings → Moneris.
  2. Leave Mode on Sandbox (test), which is the default. A banner reminds you that no real money moves.
  3. Pick your platform and fill in the sandbox credentials: Merchant ID, Client ID and Client Secret, or Store ID and API Token.
  4. Enter your Hosted Tokenization Profile ID. Create it in the Moneris Merchant Resource Centre under Admin, Hosted Tokenization, Create Profile, using your website domain as the source domain. The ID starts with “ht”.
  5. Optionally add a statement descriptor, then save.

Sandbox and live each have their own credential fields, so you can fill in both and switch with one setting. The test environment is separate from your real account: the Moneris API uses api.sb.moneris.io for sandbox and api.moneris.io for live, the classic gateway uses esqa.moneris.com and www3.moneris.com, and the card frame loads from the matching Moneris host.

Step 3: Add the Moneris Card field

In the form editor, open Pricing Fields and add Moneris Card. It renders Moneris Hosted Tokenization: the card number, expiry and CVD are typed into a frame hosted by Moneris, and only a single-use token reaches your site. Card data never touches WordPress. Only one Moneris Card field fits on a form.

Add the pricing fields too: a Product, an Option, a Total, or a Donation field. Moneris charges the total Gravity Forms calculates on your server, in CAD. If your Gravity Forms currency is something else, the add-on shows an admin notice and customers are told card payments are not available in that currency.

Step 4: Create the Moneris feed

Open Settings → Moneris on the form and add a feed. Choose Products and Services for one-time payments. Then set:

  • Payment Action: Purchase or Pre-authorize.
  • Billing Information: map cardholder name, email, phone, street address, unit, city, province, postal code and country.
  • Gravity Forms conditional logic if only some submissions should pay.

One-time payment or pre-authorize?

Purchase charges the card when the form is submitted. Pre-authorize holds the amount, and you capture it later from the entry. Pre-authorization suits deposits, quotes and orders you must confirm first. The add-on notes that held funds last 7 to 31 days depending on the card issuer, so capture or void in good time.

What about the billing address?

Mapping the street address and postal code matters, because they feed the Address Verification Service on the classic platform. We cover that in our guide to Moneris AVS in Gravity Forms.

Step 5: Recurring payments and subscriptions

The add-on supports subscriptions on the Moneris API platform only. Change the feed’s transaction type to Subscription and choose the billing interval in days, weeks, months or years. You can add a setup fee and a trial period. Moneris runs the schedule: the first payment, plus any setup fee, is charged on submission, and renewals are recorded on the entry automatically when Moneris notifies your site.

Three details to plan for. Moneris schedules at most 99 renewals. The interval cannot be changed after the subscription is created. And renewal notifications reach your site through a signed webhook address, so your site must be reachable by Moneris. The Subscription option does not appear on the classic Gateway platform. Cancel a subscription from the entry with the standard Gravity Forms Cancel Subscription button.

Step 6: Test a payment in the sandbox

  1. Publish the form on a page and open it in a private window.
  2. Enter a Moneris test card number from the Moneris developer documentation. The add-on help notes that the test environment approves amounts of $1.00 and $5.00.
  3. Submit. You should land on your confirmation message.
  4. Open the entry. The Moneris box shows a sandbox badge, the status, transaction ID, order ID, card brand with last four digits and the platform used.

Double-clicking submit is safe: the add-on locks each token so it can only be charged once, and on the Moneris API platform a retried request reuses the same key rather than charging again.

Step 7: Capture, void and refund from the entry

Open any Moneris entry and use the Moneris box in the sidebar. The buttons depend on the status:

  • Authorized (pre-authorized): Capture payment charges the held amount, and Void authorization releases it.
  • Paid: Void (same day) works only before Moneris closes the daily batch, which is 11 PM by default. After that, use Refund.
  • Refund lets you type an amount up to what is left, so partial refunds are possible.

Each action asks for confirmation, then records the result as an entry note and updates the payment status to Paid, Authorized, Voided or Refunded. Subscription entries are managed through the Gravity Forms subscription controls instead.

Step 8: Go live

When a sandbox payment looks right, enter your live credentials, check that your live Hosted Tokenization profile lists your real domain, and switch Mode to Live. The banner turns green to say payments are charged to real cards. Make one small real payment yourself, then refund or void it from the entry.

Accept Moneris payments on your WordPress form

Hosted card field, purchases and pre-authorizations, subscriptions on the Moneris API platform, and capture, void and refund from the entry. The Gravity Forms Moneris Payment Premium Add-on is available from $49/year.

Frequently asked questions

Do I need to be PCI compliant to use this?

Card details are typed into a frame hosted by Moneris and only a single-use token reaches your site, so card data never touches your server. Your own compliance obligations depend on your Moneris agreement, so confirm them with Moneris.

Can I charge in US dollars?

CAD is the default and the only currency enabled out of the box. A developer filter, gravityextra_moneris_supported_currencies, lets a merchant whose Moneris account handles other currencies add them.

Does it work with a Store ID and API Token?

Yes. Choose Moneris Gateway (classic) as the platform. One-time purchases and pre-authorizations work there. Subscriptions need the Moneris API platform.

Can I refund part of a payment?

Yes. The Refund button in the Moneris box takes an amount up to the balance that has not been refunded yet.

What happens if I forget to switch to Live?

Payments keep going to the Moneris test environment and no real money moves. Entries carry a sandbox badge so they are easy to spot.

Need field-by-field detail? Open the setup guide, or visit the Gravity Forms Moneris Payment Premium Add-on page.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr