🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Moneris Payment Setup Guide

Updated 10 min read Gravity Forms Payments & Pricing
On this page
  1. Step 1: Install and License the Add-on
  2. Step 2: Choose Your Moneris Platform
  3. Step 3: Connect in Sandbox Mode
  4. Sandbox and Live mode
  5. Moneris API credentials
  6. Classic Moneris Gateway credentials
  7. Step 4: Add the Moneris Card Field
  8. Step 5: Create a Moneris Feed
  9. Products and Services (one-time payments)
  10. Subscriptions (Moneris API only)
  11. Step 6: Renewal Notifications (Webhooks)
  12. Step 7: Manage Payments From the Entry Screen
  13. Address verification (AVS)
  14. Turn it on
  15. Where the AVS result appears
  16. How to test it
  17. Test in Sandbox Before Going Live
  18. Developer Filter: Supported Currencies
  19. Troubleshooting & FAQ
  20. The card frame does not appear on the form.
  21. Customers see “Card payments are not available in this currency”.
  22. Customers see “We could not complete your payment right now”.
  23. Can a customer be charged twice by clicking submit again?
  24. Where is the Subscription option?
  25. Resource Hub

The Gravity Forms Moneris Payment Premium Add-on lets Canadian businesses take card payments through their Moneris merchant account, right inside a Gravity Forms form. Customers type their card details into a secure frame loaded from Moneris, so card numbers never pass through your WordPress site.

Moneris offers two ways to connect, and the add-on supports both. The Moneris API is the default and supports one-time payments, pre-authorizations and recurring subscriptions. The classic Moneris Gateway (Store ID and API Token) supports one-time payments and pre-authorizations only. This guide covers both.

System Requirements & Prerequisites

  • WordPress: Version 6.5 or higher, served over HTTPS
  • PHP: Version 7.4 or higher
  • Gravity Forms: Version 2.9 or higher
  • Moneris merchant account: an e-commerce account with either Moneris API credentials (Merchant ID, Client ID and Client Secret) or classic Moneris Gateway credentials (Store ID and API Token), plus a Hosted Tokenization profile
  • Currency: Canadian dollars (CAD). Set Forms → Settings → Currency to Canadian Dollar.
  • GravityExtra license: the Moneris add-on installed, activated and licensed with an active GravityExtra license key

Step 1: Install and License the Add-on

  1. Go to Plugins → Add New → Upload Plugin, upload the add-on ZIP file and click Activate.
  2. Open Forms → Settings → Moneris.
  3. Enter your license key in the Gravity Extra License section and save. The Moneris settings appear once the license is active.

Step 2: Choose Your Moneris Platform

In the Moneris Account section, pick the Moneris platform that matches the credentials Moneris gave you:

  • Moneris API (default): you have a Merchant ID and created an application with a Client ID and Client Secret in the Moneris Developer Portal. Choose this if you want subscriptions.
  • Moneris Gateway (classic): you sign in to the Merchant Resource Centre and have a Store ID and API Token. One-time payments and pre-authorizations only.

If you are not sure which one you have, ask Moneris support. You can also add a Statement descriptor (up to 20 characters) that appears after your business name on the cardholder’s statement.

Step 3: Connect in Sandbox Mode

Sandbox and Live mode

A fresh install starts in Sandbox (test) mode. Sandbox payments go to the Moneris test environment and no real money moves. A yellow “Sandbox mode” banner is shown on the settings page and on every Moneris feed until you choose Live (real payments) yourself.

Moneris API credentials

  • Merchant ID: the 13-character ID of your Moneris account.
  • Client ID and Client Secret: in the Moneris Developer Portal, open Access & Credentials, create an application with Client Credentials and copy its Client ID. Generate the Client Secret and copy it right away, because it is shown only once.
  • Hosted Tokenization Profile ID: the ID of the profile that loads the secure card frame (it starts with “ht”). Enter your website domain as the source domain when you create the profile.

Click Save Settings. The add-on makes a read-only test request; when the credentials work, “Connected to Moneris.” appears under the Client Secret. Nothing is charged. If Moneris refuses them, the field shows “Moneris rejected these credentials” with the reason. Secrets are masked and never written to entries or emails.

Moneris settings in Gravity Forms with Sandbox mode selected, Moneris API platform, statement descriptor, Merchant ID, Client ID, masked Client Secret, Connected to Moneris message and Hosted Tokenization Profile ID
Forms → Settings → Moneris in sandbox mode, connected with Moneris API credentials.

Classic Moneris Gateway credentials

With the classic platform selected, enter your Store ID, your API Token (Merchant Resource Centre → Admin → Store Settings) and the same kind of Hosted Tokenization Profile ID. The classic gateway has no test call that works without a transaction, so the settings page tells you to confirm the credentials with a sandbox test payment.

Sandbox credentials for the classic Moneris Gateway with Store ID, masked API Token, a note that classic credentials are confirmed by a test payment, and the Hosted Tokenization Profile ID
Classic Moneris Gateway credentials. They are confirmed by your first sandbox payment.

Step 4: Add the Moneris Card Field

Open your form in the editor and add the Moneris Card field from Pricing Fields, together with your product fields and a Total field. Do not use the standard Gravity Forms Credit Card field.

Here is how the card is kept off your site, in plain words. The card number, expiry and CVD boxes sit inside a small window loaded directly from Moneris (Moneris Hosted Tokenization), not in your form. When the customer clicks submit, Moneris turns the card into a single-use code called a token. Only that token is sent to WordPress, and the add-on uses it once to charge the card. Your site never sees or stores the card number, which keeps your PCI scope at the simplest level.

Gravity Forms class pass checkout with name, email, phone, Canadian billing address, total and the Moneris Card field with card number, expiry and CVD boxes
A class pass checkout with the Moneris Card field. The card boxes are loaded from Moneris.

The amount is always calculated on the server from your product fields. While sandbox mode is on, administrators see a short note under the card frame with a test card number. Customers never see it.

Step 5: Create a Moneris Feed

Go to the form’s Settings → Moneris and click Add New. Feeds can be created once the credentials and Hosted Tokenization Profile ID for the current mode are saved. Choose the Transaction Type.

Products and Services (one-time payments)

Set Payment Amount to Form Total or a single product, then pick a Payment Action:

  • Purchase: the card is charged on submission and the entry is marked Paid.
  • Pre-authorize: the amount is held on the card and the entry is marked Authorized. Capture or void it later from the entry. Card issuers hold pre-authorized funds for 7 to 31 days.
Moneris feed for Products and Services with Form Total as the payment amount and Payment Action set to Purchase, charge the card now
A one-time payment feed charged from the form total.

Subscriptions (Moneris API only)

Choose Subscription and set the Recurring Amount, Billing Cycle (days, weeks, months or years) and Recurring Times. Moneris runs the schedule. The first payment plus any Setup Fee is charged on submission, and renewals start one billing cycle later. With a Trial, the trial amount (if any) is charged now and the first full payment comes one cycle later. Moneris schedules at most 99 renewals, so “infinite” means 99, and the interval cannot be changed after the subscription is created.

Moneris subscription feed with an unlimited monthly membership as recurring amount, a 1 month billing cycle, infinite recurring times and a registration setup fee
A monthly membership with a registration fee charged with the first payment.

Under Billing Information, map the cardholder name, email, phone and billing address. Provinces, postal codes and phone numbers are formatted the way Moneris expects.

Step 6: Renewal Notifications (Webhooks)

Subscriptions on the Moneris API need no manual webhook setup. When a subscription is created, the add-on gives Moneris a private notification address for that subscription, and Moneris calls it after each renewal. Your site must be publicly reachable over HTTPS for these calls to arrive.

Requests without the right private key are refused, each payment is read back from Moneris before the entry changes, and a payment is never recorded twice. Declined renewals are marked as failed.

Step 7: Manage Payments From the Entry Screen

Paid entries show a Moneris box with the status, transaction ID, order ID, card brand and last four digits, and the platform used. Sandbox payments carry a “Sandbox mode” notice and an entry note. Users who can edit entries get these actions, each with a confirmation prompt:

  • Capture payment / Void authorization: for Authorized entries.
  • Void (same day): cancels a paid payment before Moneris closes the daily batch (11 PM by default).
  • Refund: full or partial, up to the amount not yet refunded. A partial refund keeps the entry Paid; a full refund marks it Refunded.
  • Cancel Subscription: the standard Gravity Forms button in the Payment Details box.
Moneris box on a Gravity Forms entry showing the sandbox notice, Paid status, transaction ID, order ID, Visa card ending 4242, Moneris API platform, Void same day button and refund amount with Refund button
A paid sandbox entry with the Void and Refund actions.

If Moneris refuses an action, the reason is added to the entry notes. After the daily batch closes, use Refund instead of Void.

Address verification (AVS)

With the classic Moneris Gateway (Store ID and API Token), the add-on can send the cardholder’s billing street number, street name and postal code to Moneris with every purchase and pre-authorization. Moneris then runs the Address Verification Service (AVS) and returns a result code. This needs version 1.0.2 or later. The Moneris API platform already sends the billing address, so nothing changes there.

Turn it on

  1. Open the form’s Settings → Moneris and edit the feed.
  2. Under Billing Information, map Street Address and Postal Code to the matching form fields (an Address field works well).
  3. Right below it, keep Send AVS (address verification) ticked. It is on by default, and feeds created before 1.0.2 count as on. Untick it to stop sending the address to Moneris.

The street number and street name are split from the mapped Street Address, so a line such as “55 King Street West” is sent as number 55 and name King Street West. If both the address and the postal code are empty, no AVS data is sent.

Where the AVS result appears

The result code is added to the entry’s payment note (“AVS performed, result code: …”) and saved as entry meta, so you can see it next to the Moneris box on the entry. It also appears in the Moneris Merchant Resource Centre, which no longer reports that the AVS check was not performed. What a code means depends on the card brand; see the AVS result codes in the Moneris documentation.

The add-on never declines a payment because of AVS. It only sends the address and records the result. Whether a mismatch is declined is decided by the AVS rules set in your own Moneris account.

How to test it

  1. Use the classic Gateway in Sandbox mode with your Moneris test Store ID and API Token.
  2. Submit a test payment with a billing street address and postal code filled in, using a test card and an amount that the Moneris test environment documents for AVS.
  3. Open the entry and check that the payment note shows an AVS result code.
  4. Untick Send AVS, submit again and confirm that no AVS note is added.

Test in Sandbox Before Going Live

  1. Sign up at the Moneris Developer Portal and verify your email.
  2. Open Access & Credentials with the Sandbox environment, create an application with Client Credentials and the scopes payment.read, payment.write, refund.read and refund.write. Copy the Client ID, the Client Secret and the sandbox Merchant ID.
  3. Create a Hosted Tokenization profile in the test Merchant Resource Centre at esqa.moneris.com/mpg under Admin → Hosted Tokenization → Create Profile, with your site’s domain as the source domain, and copy the Profile ID.
  4. In WordPress keep Sandbox selected, paste the values and save until you see “Connected to Moneris.”
  5. Pay $5.00 with test Visa 4242424242424242, any future expiry and CVD 123. In the Moneris test environment the amount controls the result: $1.00, $5.00 and $11.00 to $50.99 are approved, $51.00 to $60.00 are declined.
  6. Try a pre-authorize feed with Capture, a refund and a void. For subscriptions, create a monthly subscription and confirm the renewal later appears on the entry.
  7. Enter your live credentials and live Hosted Tokenization profile, switch to Live and save.

Classic Gateway users can test one-time payments with a Moneris QA store and its Hosted Tokenization profile in the same test Merchant Resource Centre.

Developer Filter: Supported Currencies

Payments are accepted in CAD by default. Any other Gravity Forms currency is refused before Moneris is contacted, and an admin notice appears on the settings and feed pages. The gravityextra_moneris_supported_currencies filter changes the list. Add USD only if Moneris has set up your account to process US dollars:

functions.php
PHP
// Accept USD as well as CAD (only if your Moneris account processes US dollars)
add_filter( 'gravityextra_moneris_supported_currencies', function( $currencies ) {
    $currencies[] = 'USD';
    return $currencies;
} );

Troubleshooting & FAQ

The card frame does not appear on the form.

Check that the Hosted Tokenization Profile ID for the current mode is saved and that the profile’s source domain matches your site exactly. Use a sandbox profile in Sandbox mode and a live profile in Live mode. Make sure an optimization or security plugin is not blocking the Moneris frame.

Customers see “Card payments are not available in this currency”.

Set Forms → Settings → Currency to Canadian Dollar, or extend the currency list with the filter above if your Moneris account supports it.

Customers see “We could not complete your payment right now”.

Moneris did not answer or reported an error. Turn on Forms → Settings → Logging and check the Moneris log for the exact code and message. Customers only see a short, friendly message.

Can a customer be charged twice by clicking submit again?

No. Each card token can be charged once. A second submission with the same token gets “This payment has already been submitted”, and a retried request after a network error reuses the same key, so Moneris does not charge twice.

Where is the Subscription option?

Subscriptions need the Moneris API platform. If the classic Moneris Gateway is selected, the feed offers Products and Services only.

Resource Hub

Still need help?

Our support team answers tickets every day, usually within a few hours.

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