PHPackages                             saalid/omnipay-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. saalid/omnipay-digipay

ActiveLibrary[Payment Processing](/categories/payments)

saalid/omnipay-digipay
======================

Digipay driver for the Omnipay payment processing library

v1.2.0(1y ago)04MITPHPPHP ^7.2|^8.0

Since Aug 21Pushed 1y ago1 watchersCompare

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

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

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

[](#instalation)

```
composer require saalid/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

25

—

LowBetter than 37% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

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

3

Last Release

626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dafeb28b9bfeb0dfd8b845bdb3074b8153f8ed238d977a2bf8bf37f45c0a42a5?d=identicon)[saalid](/maintainers/saalid)

---

Top Contributors

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

---

Tags

paymentgatewaypaymerchantomnipaydigipay

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/saalid-omnipay-digipay/health.svg)

```
[![Health](https://phpackages.com/badges/saalid-omnipay-digipay/health.svg)](https://phpackages.com/packages/saalid-omnipay-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)
