Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Varbase FAQs 9.2.1 Minor update available for module varbase_faqs (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

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

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