PHPackages                             elsayed85/bank3 - 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. elsayed85/bank3

ActiveLibrary[Payment Processing](/categories/payments)

elsayed85/bank3
===============

Laravel Package For Kuveyt Turk Bank Virtual POS Integration

1421PHP

Since Mar 24Pushed 6y agoCompare

[ Source](https://github.com/elsayed85/bank3)[ Packagist](https://packagist.org/packages/elsayed85/bank3)[ RSS](/packages/elsayed85-bank3/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 7 Kuveyt Turk
=====================

[](#laravel-7-kuveyt-turk)

```
composer require elsayed85/bank3

```

`config/app.php`

```
return [
    // ...

    'providers' => [
        // ...

        elsayed85\bank3\TurkeyBankServiceProvider::class
    ],

    // ...

    'aliases' => [
        // ...

        'TurkeyBank'    => elsayed85\bank3\Facades\TurkeyBank::class
    ],
);
```

publishing
==========

[](#publishing)

```
php artisan vendor:publish

```

`config/TurkeyBank.php`

### TurkeyBank.php

[](#turkeybankphp)

```
return [
    "Type"                => "Sale",
    "APIVersion"          => "1.0.0",
    "ApiUrl"              => "https://boa.kuveytturk.com.tr/sanalposservice/Home/ThreeDModelPayGate", // Test API url : https://boatest.kuveytturk.com.tr/boa.virtualpos.services/Home/ThreeDModelPayGate
    "CustomerId"          => "400235", // Test Müşteri Numarası : 400235
    "CurrencyCode"        => "0949", // Para birimi TL 0949
    "MerchantId"          => "496", // Test Magaza Kodu : 496
    "OkUrl"               => env('KUVEYT_TURK_API_OKURL', "done"),
    "FailUrl"             => env('KUVEYT_TURK_API_FAILURL', "fail"),
    "UserName"            => env('KUVEYT_TURK_API_USERNAME', "username"), // Test API Kullanıcısı : apiuser1
    "Password"            => env('KUVEYT_TURK_API_PASSWORD', 'password'),  // Test API Kullanıcı Şifresi : Api123
    "TransactionSecurity" => "3" // 3d Secure = 3 , 3d'siz = 1
];
```

### .env

[](#env)

```
// [fail] and [done] is a route in web.php
KUVEYT_TURK_API_CUSTOMER_ID=123
KUVEYT_TURK_API_MERCHANT_ID=27003
KUVEYT_TURK_API_OKURL=done
KUVEYT_TURK_API_FAILURL=fail
KUVEYT_TURK_API_USERNAME=apiuser1
KUVEYT_TURK_API_PASSWORD=Api123
```

```
use TurkeyBank;

public function index()
{
    $TurkeyBank = TurkeyBank::setName('test test')
        ->setCardNumber(1234567891234567)
        ->setCardExpireDateMonth(02)
        ->setCardExpireDateYear(20)
        ->setCardCvv2(123)
        ->setOrderId(12345)
        ->setAmount(100)
        ->pay();
}
```

### web.php

[](#webphp)

```
// for fail request debugging
Route::post('/fail', function (Request $request) {
    if($request->AuthenticationResponse) {
        $RequestContent = urldecode($request->AuthenticationResponse);
        $data =  simplexml_load_string($RequestContent) or die("Error: Cannot create object");
        dd($request , $RequestContent , $data);
    }
    return "failed!";
});

// for success request debugging
Route::post('/done', function (Request $request) {
    if($request->AuthenticationResponse) {
        $RequestContent = urldecode($request->AuthenticationResponse);
        $data =  simplexml_load_string($RequestContent) or die("Error: Cannot create object");
        dd($request , $RequestContent , $data);
    }
    return "done!";
});
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f6465ef2e90074d5a323bf893bb1ab9a7b5af7bf61d1001f85a8448d8fb257d?d=identicon)[elsayed851999](/maintainers/elsayed851999)

---

Top Contributors

[![elsayed85](https://avatars.githubusercontent.com/u/41492621?v=4)](https://github.com/elsayed85 "elsayed85 (7 commits)")

### Embed Badge

![Health badge](/badges/elsayed85-bank3/health.svg)

```
[![Health](https://phpackages.com/badges/elsayed85-bank3/health.svg)](https://phpackages.com/packages/elsayed85-bank3)
```

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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