PHPackages                             nwebco/inverse-digipay - 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. nwebco/inverse-digipay

ActiveLibrary[Payment Processing](/categories/payments)

nwebco/inverse-digipay
======================

Digipay driver for the Omnipay payment processing library For inverse school website

v1.8.4(4mo ago)029MITPHPPHP ^7.2|^8.0

Since Jul 27Pushed 4mo agoCompare

[ Source](https://github.com/nweb-co/inverse-digipay)[ Packagist](https://packagist.org/packages/nwebco/inverse-digipay)[ Docs](https://github.com/saalid/omnipay-digipay)[ RSS](/packages/nwebco-inverse-digipay/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (7)Versions (13)Used By (0)

Instalation
-----------

[](#instalation)

```
composer require nweb-co/omnipay-digipay

```

Example
-------

[](#example)

###### Purchase

[](#purchase)

#### The result will be a redirect to the gateway or bank.

[](#the-result-will-be-a-redirect-to-the-gateway-or-bank)

```
    $this->gateway = new Gateway(
            new Client(new \Http\Adapter\Guzzle7\Client()),
    );
    $amount = 60;
    $customerPhone = '09xxxxxxxxx';

    /** @var CreateOrderResponse $response */
        $response = $this->gateway->purchase([
            'amount' => $amount,
            'phoneNumber' => $customerPhone,
            'transactionId' => rand(1111111, 99999999),
            'returnUrl' => 'http://localhost/return',
            'products' => [192, 193, 194],
            'cartId' => 180
        ])->send();

    if ($response->isSuccessful() && $response->isRedirect()) {
    // store the transaction reference to use in completePurchase()
    $transactionReference = $response->getTransactionReference();
    // Redirect to offsite payment gateway
    $response->redirect();
    } else {
        // Payment failed: display message to customer
        echo $response->getMessage();
    }
```

### Complete Purchase (Verify &amp;&amp; Deliver)

[](#complete-purchase-verify--deliver)

```
// Send purchase complete request
    $param= [
            'transactionReference' => '19259313601650191846745',
            'type' => 4,
    ];
    $response = $this->gateway->completePurchase($param)->send();

    if (!$response->isSuccessful() || $response->isCancelled()) {
        // Payment failed: display message to customer
        echo $response->getMessage();
    } else {
        $deliverResponse = $gateway->deliver([
        'transactionReference' => '19259313601650191846745',
        'type' => 13,
        'products' => [192,193,194]
        ])->send();
        // Payment was successful
        print_r($deliverResponse);
    }
```

### Refund Order

[](#refund-order)

Refund an order by the $refNum:

```
    $param= [
            'type' => 4,
            'amount' => 60,
            'transactionId' => 'asd23efawgdfyascdda', // transactionId
            'transactionReference' => 19259313601650191846745, // transactionReference
        ];
    /** @var ReverseTicketResponse $response */
    $response = $this->gateway->refund($param)->send();

    if ($response->isSuccessful()) {
        // Refund was successful
        print_r($response);
    } else {
        // Refund failed
        echo $response->getMessage();
    }
```

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance80

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~47 days

Recently: every ~123 days

Total

12

Last Release

135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8ac224e8e9081c8f58094f70e61b1bb403bd735eee874e8b153f0417f2c5b43?d=identicon)[nweb-co](/maintainers/nweb-co)

---

Top Contributors

[![saalid](https://avatars.githubusercontent.com/u/54904021?v=4)](https://github.com/saalid "saalid (22 commits)")[![nweb-co](https://avatars.githubusercontent.com/u/28049455?v=4)](https://github.com/nweb-co "nweb-co (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaydigipay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nwebco-inverse-digipay/health.svg)

```
[![Health](https://phpackages.com/badges/nwebco-inverse-digipay/health.svg)](https://phpackages.com/packages/nwebco-inverse-digipay)
```

###  Alternatives

[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

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

PHPackages © 2026

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