PHPackages                             kimoslim/omnipay-merchant-warrior - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. kimoslim/omnipay-merchant-warrior

ActiveLibrary[Payment Processing](/categories/payments)

kimoslim/omnipay-merchant-warrior
=================================

Omnipay package for the Merchant Warrior payment gateway based on https://github.com/soda-framework/omnipay-merchant-warrior

0.1.2(9y ago)04.8k—7.1%PHP

Since Nov 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kimosabi77/omnipay-merchant-warrior)[ Packagist](https://packagist.org/packages/kimoslim/omnipay-merchant-warrior)[ RSS](/packages/kimoslim-omnipay-merchant-warrior/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (4)Used By (0)

Omnipay Merchant Warrior
========================

[](#omnipay-merchant-warrior)

**Merchant Warrior API implemention**

[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment processing library. This package implements components of the Merchant Warrior Direct API.

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "composer require kimoslim/omnipay-merchant-warrior": "dev-master"
    }
}
```

Basic Usage
-----------

[](#basic-usage)

The following gateways are provided by this package:

- Merchant warrior Direct API (Following methods are done, although currently untested)
    - processAuth
    - processCapture
    - processCard

### Purchase Example

[](#purchase-example)

```
$gateway = Omnipay::create('MerchantWarrior');
$gateway->setMerchantUUID('merchant UUID');
$gateway->setApiKey('API KEY');
$gateway->setApiPassphrase('API PASS');

$card = new CreditCard(array(
    'firstName'          => 'Joe',
    'lastName'           => 'Bloggs',
    'number'             => '4444333322221111',
    'expiryMonth'        => '01',
    'expiryYear'         => '2019',
    'billingAddress1'    => 'street',
    'billingCountry'     => 'AU',
    'billingCity'        => 'SUBURB',
    'billingPostcode'    => 'POSTCODE',
    'billingState'       => 'STATE',
    'email'              => 'me@emailaddress.com',
));
$purchase = [
    'amount'            => '1.00',
    'currency'          => 'AUD',
    'transactionType'   => 'Purchase',
    'transactionId'     => 'TRANSACTION ID',
    'transactionProduct'=> 'Test Transaction Description',
    'card'              => $card
];
$request = $gateway->purchase($purchase);
$response = $request->send();
if ($response->isSuccessful()) {
    // insert the transaction
    $txn_id = $response->getTransactionReference();
    $auth_code = $response->getAuthCode();
    $message = $response->getMessage();
    echo 'Payment successful: TXN ID - '.$txn_id.' auth code: '.$auth_code.' message:'.$message.PHP_EOL;
}
else
{
    echo 'Credit Card Failed: '.$response->getMessage().PHP_EOL;
}

```

### Authorize Example

[](#authorize-example)

```
$authorize = [
    'amount'            => '1.00',
    'currency'          => 'AUD',
    'transactionType'   => 'Authorize',
    'transactionId'     => 'TRANSACTION ID',
    'transactionProduct'=> 'Test Authorisation Description',
    'card'              => $card
];
$request = $gateway->authorize($authorize);
$response = $request->send();
if ($response->isSuccessful()) {
    // insert the transaction
    $txn_id = $response->getTransactionReference();
    $auth_code = $response->getAuthCode();
    $message = $response->getMessage();
    echo 'Payment successful: TXN ID - '.$txn_id.' auth code: '.$auth_code.' message:'.$message.PHP_EOL;
}
else
{
    echo 'Credit Card Failed: '.$response->getMessage().PHP_EOL;
}

```

More details of Merchant Warrior's API can be found at [Merchant Warrior](https://dox.merchantwarrior.com/)

For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay) repository.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

3

Last Release

3511d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/56e182d8c2ced9e5831be8b2907af8360c572ce57b04f652a8eaafff7aeb2ec6?d=identicon)[kimosabi77](/maintainers/kimosabi77)

---

Top Contributors

[![kimosabi77](https://avatars.githubusercontent.com/u/863269?v=4)](https://github.com/kimosabi77 "kimosabi77 (3 commits)")

---

Tags

paymentgatewaypaymerchantomnipayWarriorMerchantWarrior

### Embed Badge

![Health badge](/badges/kimoslim-omnipay-merchant-warrior/health.svg)

```
[![Health](https://phpackages.com/badges/kimoslim-omnipay-merchant-warrior/health.svg)](https://phpackages.com/packages/kimoslim-omnipay-merchant-warrior)
```

###  Alternatives

[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24651.4k3](/packages/omnipay-payfast)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1019.5k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

155.4k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
