PHPackages                             bankette/omnipay-hipay - 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. bankette/omnipay-hipay

ActiveLibrary[Payment Processing](/categories/payments)

bankette/omnipay-hipay
======================

Integrate Hipay in omnipay

v1.0(10y ago)054PHP &gt;=5.3.2

Since Jun 28Compare

[ Source](https://github.com/bankette/omnipay-hipay)[ Packagist](https://packagist.org/packages/bankette/omnipay-hipay)[ RSS](/packages/bankette-omnipay-hipay/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

Omnipay - Hipay gateway
=======================

[](#omnipay---hipay-gateway)

Omnipay gateway for hipay.

This code needs amelioration but is a good base to integrate hipay in your omnipay. Please feel free to fork and do PR to improve this library.

Purchase
--------

[](#purchase)

Here is a code example for symfony to send a purchase request to hipay.

```
use Bankette\OmnipayHipay\Gateway;
use Symfony\Component\HttpFoundation\Request as SymfonyRequest;

/**
 * Payment by hipay Action.
 *
 * @return Response
 */
    public function hipayPaymentAction(SymfonyRequest $request)
    {
        $data = [
            'orderid' => 'my-order-id',
            'amount' => 10,
            'currency' => 'EUR',
            'card' => [
                'number' => '4000000000000002',
                'expiryMonth' => '10',
                'expiryYear' => '2020',
                'cvv' => '123',
            ],
            'cardtype' => 'visa',
            'description' => 'description',
        ];

        $gateway = new Gateway();
        $gateway->setClientId($this->username);
        $gateway->setSecret($this->password);
        $gateway->setTestMode(true);
        $purchaseResponse = $gateway->purchase($data)->send();

        if (!$purchaseResponse->isSuccessful() && !$purchaseResponse->isRedirect()) {
            throw new BadRequestHttpException($purchaseResponse->getError());
        }

        if ($purchaseResponse->isSuccessful()) {
            // Payment validated
        }

        if ($purchaseResponse->isRedirect() && $purchaseResponse->getRedirectUrl()) {
            // Payment waiting for 3D secure validation
        }
        // ...
    }
```

Notify
------

[](#notify)

After a purchase request, hipay will send notifications on the 'notification URL' defined in hipay back-office. The below controller will be called directly by hipay API on your API.

```
    /**
     * @return Response
     *
     * @Route("/hipay/notify")
     *
     * @Method("POST")
     *
     * @View()
     *
     * @throws NotFoundHttpException
     */
    public function hipayNotifyAction(SymfonyRequest $request)
    {
        $gateway = new Gateway();

        $response = $gateway->completePurchase();

        switch ($response->getStatus()) {
            // Status "Cardholder Enrolled"
            case '103':
            // Status "Cardholder Not Enrolled"
            case '104':
            // Status "Authorized"
            case '116':
            // Status "Capture Requested"
            case '117':
                // do something
                break;

            // Status "Captured"
            case '118':
                // do something
                break;

            // Status "Could Not Authenticate"
            case '108':
            // Status "Authentication Failed"
            case '109':
            // Status "Refused"
            case '113':
            // Status "Expired"
            case '114':
                // do something
                break;

            default:
                // do something
                break;
        }

        return new Response();
    }
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3654d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1617800?v=4)[Julien M](/maintainers/bankette)[@bankette](https://github.com/bankette)

---

Top Contributors

[![bankette](https://avatars.githubusercontent.com/u/1617800?v=4)](https://github.com/bankette "bankette (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasehipay

### Embed Badge

![Health badge](/badges/bankette-omnipay-hipay/health.svg)

```
[![Health](https://phpackages.com/badges/bankette-omnipay-hipay/health.svg)](https://phpackages.com/packages/bankette-omnipay-hipay)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

557422.2k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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