PHPackages                             gccm/windcave-client - 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. gccm/windcave-client

ActiveLibrary[Payment Processing](/categories/payments)

gccm/windcave-client
====================

Windcave client to implement payment gateways.

1.0.3(5y ago)030MITPHPCI failing

Since Jul 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/carlouni/windcave-client)[ Packagist](https://packagist.org/packages/gccm/windcave-client)[ RSS](/packages/gccm-windcave-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

Windcave Client
===============

[](#windcave-client)

This is a library to enable the implementation of payment gateways using Windcave payment platform.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
$ composer require gccm/windcave-client

```

### Generate Payment URL

[](#generate-payment-url)

The **url** returned by **$windcave-&gt;getPaymentUrl** is where the payer should be redirected to proceed with payment.

```
use Gccm\WindcaveClient\Windcave;
use Gccm\WindcaveClient\exception\WindcaveException;

try {
    $windcave = new Windcave(
        'https://sec.paymentexpress.com/pxaccess/pxpay.aspx',
        'SampleUserId',
        '17ce70a6025d8b925373066d3f71704a1868ea30a8d0485b6d086f722fdd9997'
    );

    $url = $windcave->getPaymentUrl([
        'MerchantReference' => 'Auth Example',
        'TxnType' => 'Auth',
        'AmountInput' => '1.00',
        'CurrencyInput' => 'NZD',
        'TxnData1' => 'John Doe',
        'TxnData2' => '0211111111',
        'TxnData3' => '98 Anzac Ave, Auckland 1010',
        'EmailAddress' => 'SampleUserId@paymentexpress.com',
        'TxnId' => uniqid(),
        'UrlSuccess' => 'https://demo.paymentexpress.com/SandboxSuccess.aspx',
        'UrlFail' => 'https://demo.paymentexpress.com/SandboxSuccess.aspx',
    ]);

    echo $url;
} catch (WindcaveException $e) {
    // do some stuff with $e
}
```

#### Example Response

[](#example-response)

```
https://sec.paymentexpress.com/pxmi3/EF4054F622D6C4C1B4F9AEA59DC91CAD3654CD60ED7ED04110CBC402959AC7CF035878AEB85D87223

```

### Obtain payment result

[](#obtain-payment-result)

Call the **$windcave-&gt;getResult** method passing the **result** hash returned by Windcave.

```
use Gccm\WindcaveClient\Windcave;
use Gccm\WindcaveClient\exception\WindcaveException;

try {
    $windcave = new Windcave(
        'https://sec.paymentexpress.com/pxaccess/pxpay.aspx',
        'SampleUserId',
        '17ce70a6025d8b925373066d3f71704a1868ea30a8d0485b6d086f722fdd9997'
    );

    $result = $windcave->getResult('00008400001853747f2bc6ded6012345');

    var_dump($result);
]);
} catch (WindcaveException $e) {
    // do some stuff with $e
}
```

#### Example Response

[](#example-response-1)

```
array(25) {
  'Success' => string(1) "1"
  'TxnType' => string(4) "Auth"
  'CurrencyInput' => string(3) "NZD"
  'MerchantReference' => string(12) "Auth Example"
  'TxnData1' => string(8) "John Doe"
  'TxnData2' => string(10) "0211111111"
  'TxnData3' => string(27) "98 Anzac Ave, Auckland 1010"
  'AuthCode' => string(6) "185621"
  'CardName' => string(4) "Visa"
  'CardHolderName' => string(4) "TEST"
  'CardNumber' => string(16) "411111........11"
  'DateExpiry' => string(4) "0720"
  'ClientInfo' => string(15) "220.253.106.137"
  'TxnId' => string(13) "5f0c057921ed3"
  'EmailAddress' => string(31) "SampleUserId@paymentexpress.com"
  'DpsTxnRef' => string(16) "0000000b7629a6eb"
  'BillingId' => string(0) ""
  'DpsBillingId' => string(0) ""
  'AmountSettlement' => string(4) "1.00"
  'CurrencySettlement' => string(3) "NZD"
  'DateSettlement' => string(8) "20200713"
  'TxnMac' => string(8) "2BC20210"
  'ResponseText' => string(8) "APPROVED"
  'CardNumber2' => string(0) ""
  'Cvc2ResultCode' => string(1) "P"
}

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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 ~0 days

Total

4

Last Release

2179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c6a398fe2d5f83438951eb386826b6107a7416ab065f917d2959fd6a7b7ea06?d=identicon)[gonzalo.cardenas](/maintainers/gonzalo.cardenas)

---

Top Contributors

[![carlouni](https://avatars.githubusercontent.com/u/3054084?v=4)](https://github.com/carlouni "carlouni (15 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/gccm-windcave-client/health.svg)

```
[![Health](https://phpackages.com/badges/gccm-windcave-client/health.svg)](https://phpackages.com/packages/gccm-windcave-client)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

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