PHPackages                             tcgunel/omnipay-vakifkatilim - 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. tcgunel/omnipay-vakifkatilim

ActiveLibrary[Payment Processing](/categories/payments)

tcgunel/omnipay-vakifkatilim
============================

Omnipay extension for Vakif Katilim

v2.0.0(3mo ago)02MITPHPPHP ^8.3CI passing

Since Mar 23Pushed 3mo agoCompare

[ Source](https://github.com/tcgunel/omnipay-vakifkatilim)[ Packagist](https://packagist.org/packages/tcgunel/omnipay-vakifkatilim)[ Docs](https://github.com/tcgunel/omnipay-vakifkatilim)[ RSS](/packages/tcgunel-omnipay-vakifkatilim/feed)WikiDiscussions main Synced 3w ago

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

Omnipay: VakifKatilim
=====================

[](#omnipay-vakifkatilim)

**Vakif Katilim sanal pos gateway for the Omnipay PHP payment processing library.**

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP. This package implements Vakif Katilim support for Omnipay.

Installation
------------

[](#installation)

```
composer require tcgunel/omnipay-vakifkatilim
```

Usage
-----

[](#usage)

### Gateway Parameters

[](#gateway-parameters)

ParameterDescription`merchantId`Merchant ID (MerchantId)`customerId`Customer ID (CustomerId)`userName`API Username (UserName)`password`API Password (plain text, hashed internally)`installment`Installment count (0 = no installment)`secure`Use 3D Secure (true/false)### Non-3D Purchase

[](#non-3d-purchase)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('VakifKatilim');

$gateway->setMerchantId('YOUR_MERCHANT_ID');
$gateway->setCustomerId('YOUR_CUSTOMER_ID');
$gateway->setUserName('YOUR_USERNAME');
$gateway->setPassword('YOUR_PASSWORD');

$response = $gateway->purchase([
    'secure'        => false,
    'amount'        => '12.34',
    'currency'      => 'TRY',
    'transactionId' => 'ORDER-001',
    'installment'   => 0,
    'card'          => [
        'firstName'   => 'John',
        'lastName'    => 'Doe',
        'number'      => '4111111111111111',
        'expiryMonth' => '12',
        'expiryYear'  => '2030',
        'cvv'         => '123',
    ],
])->send();

if ($response->isSuccessful()) {
    echo "Payment successful! Code: " . $response->getCode();
} else {
    echo "Payment failed: " . $response->getMessage();
}
```

### 3D Secure Purchase

[](#3d-secure-purchase)

**Step 1: Redirect to bank**

```
$response = $gateway->purchase([
    'secure'        => true,
    'amount'        => '12.34',
    'currency'      => 'TRY',
    'transactionId' => 'ORDER-001',
    'installment'   => 0,
    'returnUrl'     => 'https://yoursite.com/payment/success',
    'cancelUrl'     => 'https://yoursite.com/payment/failure',
    'card'          => [
        'firstName'   => 'John',
        'lastName'    => 'Doe',
        'number'      => '4111111111111111',
        'expiryMonth' => '12',
        'expiryYear'  => '2030',
        'cvv'         => '123',
    ],
])->send();

if ($response->isRedirect()) {
    $response->redirect(); // Redirects to bank 3D page
}
```

**Step 2: Complete purchase (on callback)**

```
$response = $gateway->completePurchase([
    'merchantId'       => 'YOUR_MERCHANT_ID',
    'customerId'       => 'YOUR_CUSTOMER_ID',
    'userName'         => 'YOUR_USERNAME',
    'password'         => 'YOUR_PASSWORD',
    'responseCode'     => $_POST['ResponseCode'],
    'responseMessage'  => $_POST['ResponseMessage'],
    'merchantOrderId'  => $_POST['MerchantOrderId'],
    'md'               => $_POST['MD'],
    'amount'           => '12.34',
    'currency'         => 'TRY',
    'installment'      => 0,
])->send();

if ($response->isSuccessful()) {
    echo "3D Payment successful!";
} else {
    echo "3D Payment failed: " . $response->getMessage();
}
```

Supported Methods
-----------------

[](#supported-methods)

MethodDescription`purchase()`Non-3D or 3D sale (based on `secure` param)`completePurchase()`Complete 3D payment after bank callbackCurrency Codes
--------------

[](#currency-codes)

CurrencyCodeTRY0949USD0840EUR0978GBP0826Amount Format
-------------

[](#amount-format)

Amounts are passed as standard decimal values (e.g., `12.34`). The gateway internally converts them to integer format required by VakifKatilim (e.g., `1234`).

Hash Algorithm
--------------

[](#hash-algorithm)

- **Non-3D:** `SHA1Base64(MerchantId + MerchantOrderId + Amount + UserName + SHA1Base64(Password))`
- **3D:** `SHA1Base64(MerchantId + MerchantOrderId + Amount + OkUrl + FailUrl + UserName + SHA1Base64(Password))`

Endpoints
---------

[](#endpoints)

EnvironmentTypeURLProductionNon-3DProduction3D PayProduction3D Provision**Note:** Test URLs are not available for VakifKatilim. Only production endpoints are provided.

Not Implemented
---------------

[](#not-implemented)

Cancel and Refund operations are not implemented. The CP.VPOS reference returns error messages for these operations, indicating they are not supported by this bank.

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

MIT License. See [LICENSE](LICENSE) for details.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance82

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

2

Last Release

96d ago

Major Versions

v1.0.0 → v2.0.02026-03-23

PHP version history (2 changes)v1.0.0PHP ^8.0

v2.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/36dffe883e88aeef07c26067af3d6a7eda1c2a81f1ae45fdd430b721665131da?d=identicon)[Mobius Studio](/maintainers/Mobius%20Studio)

---

Top Contributors

[![tcgunel](https://avatars.githubusercontent.com/u/3923425?v=4)](https://github.com/tcgunel "tcgunel (5 commits)")

---

Tags

paymentgatewayomnipaysanal-pos3d-securevakifkatilimvakif katilim

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tcgunel-omnipay-vakifkatilim/health.svg)

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

###  Alternatives

[yasinkuyu/omnipay-iyzico

Iyzico gateway for Omnipay payment processing library

137.3k](/packages/yasinkuyu-omnipay-iyzico)

PHPackages © 2026

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