Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module integrates Merchant Warrior payments into Drupal Commerce, allowing for secure online transactions. It supports both direct payment processing and tokenized payments, enabling you to store customer credit card information securely with Merchant Warrior and process payments without directly handling sensitive data.

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.

Depends on

Dependencies of the latest stable release

  • commerce Drupal core
  • commerce_payment Drupal core
  • rest Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
May 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

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