PHPackages                             sylapi/omnipay-inbank - 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. sylapi/omnipay-inbank

ActiveLibrary[Payment Processing](/categories/payments)

sylapi/omnipay-inbank
=====================

InBank gateway for Omnipay payment processing library

v1.1.0(3y ago)04.6k—4.8%[2 issues](https://github.com/sylapi/omnipay-inbank/issues)MITPHP

Since May 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/sylapi/omnipay-inbank)[ Packagist](https://packagist.org/packages/sylapi/omnipay-inbank)[ RSS](/packages/sylapi-omnipay-inbank/feed)WikiDiscussions master Synced 2d ago

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

Omnipay: InBank
===============

[](#omnipay-inbank)

[![PHPStan](https://camo.githubusercontent.com/7a8a54e7ee075f9a33edda53b4e146cabdd7b14478a2ca64d17080aaff0f3b3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e2e7376673f7374796c653d666c6174)](https://camo.githubusercontent.com/7a8a54e7ee075f9a33edda53b4e146cabdd7b14478a2ca64d17080aaff0f3b3d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e2e7376673f7374796c653d666c6174) [![Build](https://github.com/sylapi/omnipay-inbank/actions/workflows/build.yaml/badge.svg?event=push)](https://github.com/sylapi/omnipay-inbank/actions/workflows/build.yaml) [![codecov.io](https://camo.githubusercontent.com/9d6ca3794e3fa95ce60b962723ac844e8fa9dad835b13c80381b53c1fd22fbb5/68747470733a2f2f636f6465636f762e696f2f6769746875622f73796c6170692f6f6d6e697061792d696e62616e6b2f636f7665726167652e737667)](https://codecov.io/github/sylapi/omnipay-inbank/)

Init
----

[](#init)

```
$gateway = Omnipay::create('InBank');
$gateway->setApiKey('--APIKEY--');
$gateway->setShopUidd('--SHOPUIDD--');
$gateway->setTestMode(true);
$gateway->setApiUrlSandbox('https://demo-api.inbank.cz'); /* Optional (default: https://demo-api.inbank.pl) */
$gateway->setApiUrlProduction('https://api.inbank.cz'); /* Optional (default: https://api.inbank.pl) */
```

Ping
----

[](#ping)

```
try {
    $response = $gateway->ping()->send();
    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Purchase
--------

[](#purchase)

```
try {
    $response = $gateway->purchase([
        'creditApplication' => [
            "product_code" => "hirepurchase_epos_0.0%_e57c6ec8018d",
            "amount" =>  "2000.0",
            "period" => 12,
            "payment_day" => 4,
            "monthly_income" => "4222.11",
            "dependants_count" => "0",
            "monthly_household_costs" => "0.0",
            "income_source" => "pension",
            "payout_account_number" =>  "PL92962000058311149653553838"
        ],
        "customer" => [
            "identity_code" => "50110502242",
            "first_name" => "Example",
            "last_name" => "Customer"
        ],
        "customerAddresses" => [
            [
                "type" => "legal",
                "country" => "PL",
                "street" => "Fabryczna",
                "house" => "5A",
                "apartment" => "101",
                "zip_code" => "00-100"
            ]
        ],
        "customerContact" => [
            "mobile" => "+48500600700",
            "email" => "test@email.dev"
        ],
        "customerIdentification" => [
            "document_type" => "id_card",
            "document_number" => "XLP255805",
            "document_valid_to" => "2021-08-26"
        ],
        "customerConsents" => [
            "operational_contact_email" => true,
            "inbank_queries_after_contract_expiry" => false,
            "marketing_email" => false,
            "marketing_sms" => false,
            "marketing_phone" => false
        ]
    ])->send();
    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getTransactionId());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Purchase Signing
----------------

[](#purchase-signing)

```
try {
    $response = $gateway->purchaseSigning([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111',
            'signingMethod' => \Omnipay\InBank\Enums\SigningMethod::DIGITAL
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Fetch Transaction
-----------------

[](#fetch-transaction)

```
try {
    $response = $gateway->fetchTransaction([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getPaymentSchedule());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Accept Purchase
---------------

[](#accept-purchase)

```
try {
    $response = $gateway->acceptPurchase([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getContractUuid());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Cancel Purchase
---------------

[](#cancel-purchase)

```
try {
    $response = $gateway->cancelPurchase([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Contract Printout
-----------------

[](#contract-printout)

```
try {
    $response = $gateway->contractPrintout([
            'contractUuid' => '11111111-1111-1111-1111-111111111111',
            'forceRegeneration' => true
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getUuid());
        var_dump($response->getLink());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Fetch Contract
--------------

[](#fetch-contract)

```
try {
    $response = $gateway->fetchContract([
            'contractUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getTransactionId());
        var_dump($response->getContractUuid());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Printout
--------

[](#printout)

```
try {
    $response = $gateway->printout([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111',
            'printoutType' => \Omnipay\InBank\Enums\PrintoutType::APPLICATION,
            'forceRegeneration' => true
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getUuid());
        var_dump($response->getLink());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Init Contract Signing
---------------------

[](#init-contract-signing)

```
try {
    $response = $gateway->initContractSigning([
            'contractUuid' => '11111111-1111-1111-1111-111111111111',
            'signingMethod' => \Omnipay\InBank\Enums\SigningMethod::SMS
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Contract Signing
----------------

[](#contract-signing)

```
try {
    $response = $gateway->contractSigning([
            'contractUuid' => '11111111-1111-1111-1111-111111111111',
            'confirmationCode' => '561085',
            'signingMethod' => \Omnipay\InBank\Enums\SigningMethod::SMS
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Contract Cancel
---------------

[](#contract-cancel)

```
try {
    $response = $gateway->contractCancel([
        'contractUuid' => '11111111-1111-1111-1111-111111111111'
    ])->send();

    if(!$response->isSuccessful())
    {
        var_dump($response->getMessage());
    }

} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Verification Application
------------------------

[](#verification-application)

```
try {
    $response = $gateway->applicationVerification([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111',
            'uuid' => '11111111-1111-1111-1111-111111111111',
            'verificationMethod' => \Omnipay\InBank\Enums\VerificationMethod::BLUE_MEDIA,
            'returnUrl' => 'http://test.shop.dev/returnUrl.php'
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        if($response->isRedirect()) {
            var_dump($response->getRedirectUrl());
            $response->redirect();
        }
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Verification Application Status
-------------------------------

[](#verification-application-status)

```
try {
    $response = $gateway->applicationVerificationStatus([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111',
            'verificationMethod' => \Omnipay\InBank\Enums\VerificationMethod::BLUE_MEDIA
        ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getVerificationStatus());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Contract Merchant Approval
--------------------------

[](#contract-merchant-approval)

```
try {
    $response = $gateway->contractMerchantApproval([
            'contractUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();

    if(!$response->isSuccessful())
    {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Calculations
------------

[](#calculations)

```
try {
    $response = $gateway->calculations([
        'productCode' => 'hirepurchase_epos_0.8%_11111111',
        'amount' => 7000,
        'period' => 12,
        'downPaymentAmount' => 1500,
        'paymentDay' => 4,
        'responseLevel' => \Omnipay\InBank\Enums\ResponeLevel::SIMPLE,
    ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Product Details
---------------

[](#product-details)

```
try {
    $response = $gateway->productDetails([
        'productCode' => 'hirepurchase_epos_0.0%_11111111'
    ])->send();

    if($response->isSuccessful())
    {
        var_dump($response->getData());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Fetch Customer
--------------

[](#fetch-customer)

```
try {
    $response = $gateway->fetchCustomer([
            'applicationUuid' => '11111111-1111-1111-1111-111111111111'
        ])->send();
    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getPaymentSchedule());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Get Payment Schedule of Credit Application
------------------------------------------

[](#get-payment-schedule-of-credit-application)

```
try {
    $response = $gateway->paymentSchedule([
        'applicationUuid' => '11111111-1111-1111-1111-111111111111',
        'responseLevel' => \Omnipay\InBank\Enums\PaymentSchedulesResponeLevel::FULL
    ])->send();
    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getTransactionId());
        var_dump($response->getApplicationUuid());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Recalculate Payment Schedule
----------------------------

[](#recalculate-payment-schedule)

```
try {
    $response = $gateway->recalculatePaymentSchedule([
        'applicationUuid' => '11111111-1111-1111-1111-111111111111',
        'downPaymentAmount' => 1000
    ])->send();
    if($response->isSuccessful())
    {
        var_dump($response->getData());
        var_dump($response->getTransactionId());
        var_dump($response->getApplicationUuid());
    }
    else {
        var_dump($response->getMessage());
    }
} catch (\Exception $e) {
    var_dump($e->getMessage());
}
```

Commands
--------

[](#commands)

COMMANDDESCRIPTIONcomposer testsTestscomposer phpstanPHPStan

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~192 days

Total

5

Last Release

1103d ago

Major Versions

v0.1.1.x-dev → v1.0.02023-06-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/8284e979dcbb9e6ff013f3e04f2c3f0a3de8f62fad97e12383155779b0adee23?d=identicon)[sylapi](/maintainers/sylapi)

---

Top Contributors

[![danielserafinski](https://avatars.githubusercontent.com/u/26834885?v=4)](https://github.com/danielserafinski "danielserafinski (4 commits)")[![dserafinski](https://avatars.githubusercontent.com/u/73796476?v=4)](https://github.com/dserafinski "dserafinski (3 commits)")[![rogal127](https://avatars.githubusercontent.com/u/37405360?v=4)](https://github.com/rogal127 "rogal127 (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sylapi-omnipay-inbank/health.svg)

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

###  Alternatives

[omnipay/payflow

Payflow driver for the Omnipay payment processing library

201.0M3](/packages/omnipay-payflow)[omnipay/payfast

PayFast driver for the Omnipay payment processing library

24651.4k3](/packages/omnipay-payfast)[aimeos/ai-payments

Payment extension for Aimeos e-commerce solutions

2164.1k](/packages/aimeos-ai-payments)

PHPackages © 2026

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