commerce_merchant_warrior
28 sites
Security covered
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-tokento 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
testmode or not)
- It will also include the Payframe submit URL and Payframe src URL needed for the FE (depending on whether we're in
- 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
getPayframeTokenAPI
- Once the credit card details are entered, the FE will make a call to the
- Payframe will return back a
payframeTokenandpayframeKey - Now, make a call to
/api/merchant-warrior/process-authorizationwith 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:
- Submodules of Drupal Commerce package (https://drupal.org/project/commerce)
- Commerce core
- Commerce Payment (and its dependencies)
- Merchant Warrior Merchant account
Community Documentation
The usage documentation can be found here.