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

Gravity Forms Merchant Warrior Payment Gateway Premium Add-on Setup Guide

Updated 8 min read Gravity Forms Payments & Pricing
On this page
  1. Video walkthrough
  2. What You Get
  3. Requirements
  4. Quick Start
  5. Step 1: Settings
  6. Step 2: The Feed
  7. What the Customer Sees
  8. How an Entry Becomes Paid
  9. The Entry Screen and Refunds
  10. Notifications, Conditional Logic and Other Add-ons
  11. Currencies
  12. What Is Not in Version 1.0.0
  13. Questions People Ask
  14. Do I need a PCI certificate for my site?
  15. Where is my passphrase kept?
  16. What if the customer closes the browser after paying?
  17. Can I test without real money?
  18. Does it work with other Gravity Forms add-ons?

Video walkthrough

Gravity Forms Merchant Warrior Payment Gateway Setup Guide: Sandbox & Live (WordPress Side)
Video setup guide: Gravity Forms Merchant Warrior Payment Gateway Watch on YouTube

The Gravity Forms Merchant Warrior Payment Gateway Premium Add-on lets a Gravity Forms booking, order or donation form take card payments through Merchant Warrior, the Australian payment gateway. The customer is sent to the secure Merchant Warrior payment page, types the card there, and comes back to your site with the entry already marked as paid. Your site never sees, posts or stores a card number.

What You Get

  • A payment feed for Gravity Forms with the transaction types Products and Services and donations. Every pricing field, discount and shipping field of the form is part of the amount, and the amount is worked out on the server.
  • The Merchant Warrior hosted payment page. The card is typed on the gateway page, so the PCI work stays with Merchant Warrior.
  • Hashed requests. A one-time access token is requested with your API passphrase, and the passphrase, API key and merchant UUID never reach a browser.
  • A checked return link and a checked postback. Neither is believed: the add-on reads the transaction from Merchant Warrior again and compares the transaction id, the reference, the amount and the currency before it marks the entry as paid.
  • Full and partial refunds from the entry screen, and refunds made in Barracks picked up when you press Refresh status.
  • A status check every five minutes, so a customer who closes the browser tab after paying still ends up with a paid entry.
  • Sandbox and live credentials, a Test connection button, entry notes, conditional logic, payment notification events, and feeds of other add-ons that can wait for the payment.

Requirements

You need Gravity Forms 2.9 or newer, WordPress 6.5 or newer, PHP 7.4 or newer and your own Merchant Warrior account. After you sign up, open Barracks, then Settings, then Direct API. The three values you need are there: the Merchant UUID, the API Key and the API Passphrase. Merchant Warrior gives the sandbox its own set. No partner contract or approval is needed, and the add-on only talks to Merchant Warrior and to your own site. Your site should use HTTPS, because Merchant Warrior sends the customer back to it and posts notifications to it.

Quick Start

  1. Install and activate the add-on, then activate your license key under Forms, Settings, Merchant Warrior.
  2. Choose Sandbox, enter the sandbox merchant UUID, API key and API passphrase and save. The add-on checks all three with Merchant Warrior before it keeps them.
  3. Set the currency of Gravity Forms (AUD for most accounts) and build a form with product fields, a Total field and the customer details you want to pass on.
  4. Open the form settings, choose Merchant Warrior and add a feed. Map the customer name, email, phone and address, and set the payment reference.
  5. Make a test payment with a Merchant Warrior sandbox card, then check the entry. When everything looks right, enter the live values and switch to Live.
The Merchant Warrior settings in Gravity Forms: sandbox or live, merchant UUID, API key and passphrase fields, currency check, connection status, a Test connection button and the notification address
One settings page: both environments, a connection check and the notification address.

Step 1: Settings

Open Forms, Settings, Merchant Warrior. The first choice is the environment. Sandbox is the default: payments go to the Merchant Warrior sandbox, no money moves and every entry is marked as a sandbox payment. Both environments have three fields: the merchant UUID, the API key and the API passphrase.

When you press Save, the add-on asks Merchant Warrior for an access token for one Australian dollar, signed with the transaction hash. Merchant Warrior checks the UUID, the key and the passphrase in that one call, and no payment is created. If one of them is wrong, you see which one, and nothing is saved, so working values are never replaced by wrong ones. A Test connection button repeats the check at any time.

The API key and the passphrase are stored encrypted with a key made from your site salts. The fields show the encrypted text, never the real values, and the page source never holds them. The passphrase signs every request, so treat it like a password.

Step 2: The Feed

Add a feed to the form. The payment reference is what the customer sees on the payment page and what you see next to the transaction in Barracks. Merge tags work, for example Kayak tour booking number followed by the entry id. At most forty characters are sent, because some banks cut the reference there.

Declined cards decides what happens when a card is declined. When the box is ticked, the customer stays on the Merchant Warrior page with a message and can try another card, and your site only hears about it when a card is approved. When it is not ticked, the customer comes back to your site and the entry is marked as failed. Payment page ID is optional: if you made a customised hosted page with your own logo in Barracks, type its number here.

Under billing information you map the customer name, email, phone, address, city, state, post code and country. All of them are optional, and only valid values are sent. A name is cleaned to the letters, digits, full stops and hyphens Merchant Warrior accepts, a post code needs four to ten characters, and a country name from a Gravity Forms Address field is turned into the two letter code.

The Merchant Warrior feed settings in Gravity Forms: payment reference, keep the customer on the payment page after a declined card, payment page ID and hold notifications until the payment is approved
One feed per form: the reference, declined card behaviour and the payment page ID.

What the Customer Sees

The customer fills in the form and presses the button. For a moment they see a small page that says they are being taken to the secure payment page, and then the Merchant Warrior page opens with the amount, your reference and, if you use one, your logo. After paying, the customer is sent back to the page with your form and sees the confirmation you set up in Gravity Forms.

If the customer comes back before Merchant Warrior has confirmed the payment, a short page says the payment is being confirmed and checks again by itself. If the link was changed on the way, or the hash does not match, the page says the link could not be verified and the entry is left alone. The status check then settles it.

How an Entry Becomes Paid

Three things can tell your site that a payment happened: the customer coming back, the notification Merchant Warrior posts, and the status check that runs every five minutes. They all lead to the same step. The add-on asks Merchant Warrior for the transaction with a hashed query and then compares four things: the transaction id has the right form, the reference is the one made for this entry, and the amount and currency are the ones the server worked out. Only then is the entry marked as paid, once. A change made in the browser, such as a status in the address bar, therefore changes nothing.

If the amount reported by Merchant Warrior does not match the entry, the entry is not marked as paid. It is marked as failed with a clear note, and the note is written once, so you can look at the transaction in Barracks. A payment that was never approved is closed as failed a day after checkout.

A Gravity Forms entry paid through Merchant Warrior, with payment details, a Merchant Warrior box showing the transaction, authorisation code, card and a refund field, and entry notes
The entry shows the transaction, the authorisation code, the masked card and a refund box.

The Entry Screen and Refunds

Every entry paid through Merchant Warrior has a Merchant Warrior box on the entry screen. It shows the status, the transaction id, your reference, the authorisation code, the receipt number, the masked card, the amount and what was refunded. A sandbox payment carries a badge.

To refund, type an amount and press Refund. The amount defaults to what is left. Every refund asks for a confirmation, needs a valid nonce and the permission to edit entries, and carries a one-time request id, so a double click or a reload cannot refund twice. The refund request is signed with the hash of the original amount and currency, as Merchant Warrior requires. The first partial refund sets the entry to Partially Refunded, and the refund that reaches the full amount sets it to Refunded. If Merchant Warrior refuses a refund, you see its message and the entry is not changed. If it does not answer, a note says the result is unknown and asks you to use Refresh status and to look in Barracks before you try again.

Notifications, Conditional Logic and Other Add-ons

Gravity Forms notifications get three payment events: payment completed, payment refunded and payment failed. The feed can hold the normal form notifications until the payment is approved, so a booking mail is not sent for a payment that never happens. The feed supports conditional logic, so only some submissions go to the payment page, and the others are saved as normal entries.

Feeds of other add-ons, such as an email marketing or CRM feed, can be told to run only when the payment is completed. Tick the choice that appears under Post Payment Actions on the Merchant Warrior feed, and the other add-on waits.

Currencies

Merchant Warrior lists AUD, CAD, EUR, FJD, GBP, HKD, IDR, JPY, MYR, NZD, PHP, SGD, THB, USD and ZAR. Which of them your account accepts depends on how it was set up, and Merchant Warrior asks you to check with them before you use anything other than AUD. The add-on refuses a form in another currency with a clear message and no entry, and the amount is always sent with two decimals, as the gateway requires.

What Is Not in Version 1.0.0

This version takes one-time card payments. Direct debit from a bank account needs the customer’s BSB and account number to be sent through your own server, and recurring billing needs a stored card token, so neither is part of this release. Both are planned only if they can be done without card or bank details touching your site.

Questions People Ask

Do I need a PCI certificate for my site?

Your site never receives the card number, because the card is typed on the Merchant Warrior page. Ask your own acquirer which self-assessment form applies to you.

Where is my passphrase kept?

On your server, encrypted, in the add-on settings. It is used to sign requests on the server and it is never sent to a browser or printed in a log.

What if the customer closes the browser after paying?

The notification from Merchant Warrior or the status check every five minutes finds the approved payment and updates the entry.

Can I test without real money?

Yes. The sandbox environment uses its own credentials and the Merchant Warrior test cards. Entries are marked as sandbox payments.

Does it work with other Gravity Forms add-ons?

Yes. Conditional logic, notifications and feeds that wait for the payment all work with the Merchant Warrior feed.

The Merchant Warrior add-on is part of the GravityExtra collection of Gravity Forms add-ons. See the Gravity Forms Merchant Warrior Payment Gateway Premium Add-on for the details.

See the Merchant Warrior add-on

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