Drupal is a registered trademark of Dries Buytaert

The Drupal Commerce Merchant Warrior is an integration for Merchant Warrior payments into the Drupal Commerce payment and checkout systems.

With the integration of Merchant Warrior payments into Drupal Commerce, you can provide a seamless and secure payment experience for your customers.

Features

  • This module provides a REST endpoint for decoupled architectures to process an authorization via the Merchant Warrior Payframe payment solution.
  • In addition, the module supports Merchant Warrior's Token Payments feature. This allows you to securely store customer credit card information in the Merchant Warrior system and authorize payments in the Drupal Backend without handling sensitive card data directly.

Post-Installation

There are additional REST endpoints for API usage.

  • Make a call to /api/merchant-warrior/get-access-token to fetch an access token
    • It will also include the Payframe submit URL and Payframe src URL needed for the FE (depending on whether we're in test mode or not)
  • Use the token in the FE to load the Payframe Iframe into the FE as shown here: https://jsfiddle.net/merchantwarrior/n7zfhb8k/2/
    • Once the credit card details are entered, the FE will make a call to the getPayframeToken API
  • Payframe will return back a payframeToken and payframeKey
  • Now, make a call to /api/merchant-warrior/process-authorization with the following body params:
    {
      "order_uuid": "2369047b-6b94-4b09-8089-d8c0be983dac",
      "merchant_warrior_access_token": "a532c39812",
      "merchant_warrior_payframe_token": "3d29abb98506d3e643e9",
      "merchant_warrior_payframe_key": "9f7e6050a7cfe912ad17389626988df5"
    }
  • This will authorize the payment with MW, create an order payment, and return back a 200 with the order ID and UUID
  • Place the order in the FE
Using the Drupal Backend
  • The procedure is the same as with all payment gateways
  • Select the Merchant Warrior Payment gateway from the list of available payment gateways
  • Enter your credit card details
  • Continue to the payment review process
  • Complete the checkout
  • This will authorize and capture (depending on whether both are enabled) the payment for the order total on Merchant Warrior.

Additional Requirements

This module requires the following:

Community Documentation

The usage documentation can be found here.

Activity

Total releases
4
First release
May 2025
Latest release
8 months ago
Release cadence
13 days
Stability
100% stable

Release Timeline

Releases

Version Type Release date
1.0.3 Stable Jun 17, 2025
1.0.2 Stable Jun 4, 2025
1.0.1 Stable Jun 4, 2025
1.0.0 Stable May 9, 2025