PHPackages                             yasinkuyu/omnipay-paycell-sdk - 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. yasinkuyu/omnipay-paycell-sdk

ActiveLibrary[Payment Processing](/categories/payments)

yasinkuyu/omnipay-paycell-sdk
=============================

Turkcell Paycell SDK gateway for Omnipay payment processing library

1.0.6(1y ago)017MITPHP

Since Jan 28Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Omnipay: Paycell SDK
====================

[](#omnipay-paycell-sdk)

**Turkcell Paycell SDK gateway for Omnipay payment processing library**

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

Important Notes
---------------

[](#important-notes)

- Please review [Paycell SDK Documentation](https://paycell.com.tr/paycell-sdk) before starting integration
- Check "Service Access and General Information" section for critical integration points
- This package uses RESTful JSON service examples
- For integration support:

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

[](#installation)

```
composer require league/omnipay yasinkuyu/omnipay-paycell-sdk
```

Required additional dependencies:

```
composer require php-http/curl-client guzzlehttp/psr7 php-http/message
```

Test Mode
---------

[](#test-mode)

To enable test mode, set the following in your initialization:

```
$gateway->setTestMode(true); // For test environment
$gateway->setTestMode(false); // For production environment
```

Test mode uses different endpoints and credentials:

- Test URL:
- Production URL:

Test Environment Credentials
----------------------------

[](#test-environment-credentials)

- Application name: PAYCELLTEST
- Application password: PaycellTestPassword
- Secure code: PAYCELL12345
- Eulaid: 17
- Merchant Code: 9998
- Terminal Code: \[Get from Paycell\]

Basic Usage
-----------

[](#basic-usage)

1. Navigate to example directory:

```
cd /YOUR-COMPOSER-PATH/vendor/yasinkuyu/omnipay-paycell-sdk/example
```

2. Copy `init.php.example` to `init.php`
3. Start test server:

```
php -S localhost:8000
```

4. Open test page in browser: `http://localhost:8000/purchase.php`

### Initialize Gateway

[](#initialize-gateway)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('PaycellSDK');
$gateway->setTestMode(true); // Enable test mode
$gateway->setApplicationName('PAYCELLTEST');
$gateway->setApplicationPwd('PaycellTestPassword');
$gateway->setSecureCode('PAYCELL12345');
$gateway->setEulaID(17);
$gateway->setMerchantCode(9998);
$gateway->setTerminalCode('XXXXXXXXX');
```

### Process Purchase

[](#process-purchase)

```
$transactionDateTime = date('YmdHis') . substr(microtime(), 2, 3);

$gateway->setReferenceNumber($transactionDateTime);
$gateway->setHostAccount("customer@email.com");
$gateway->setPaymentSecurity("NON_THREED_SECURE"); // or "THREED_SECURE"
$gateway->setLanguage("tr");

$response = $gateway->purchase([
    'amount' => '10.00',
    'currency' => 'TRY',
])->send();

if ($response->isSuccessful()) {
    echo "Payment successful!";
    // Get tracking URL for redirect
    $trackingUrl = $response->getTrackingUrl();
}
```

### Query Transaction Status

[](#query-transaction-status)

```
$response = $gateway->query([
    'originalPaymentReferenceNumber' => $paymentReferenceNumber,
])->send();

if ($response->isSuccessful()) {
    echo "Transaction status: " . $response->getMessage();
}
```

### Process Refund

[](#process-refund)

```
$response = $gateway->refund([
    'amount' => '10.00',
    'currency' => 'TRY',
    'originalPaymentReferenceNumber' => $paymentReferenceNumber,
])->send();
```

### Process Reverse (Cancel)

[](#process-reverse-cancel)

```
$response = $gateway->reverse([
    'originalPaymentReferenceNumber' => $paymentReferenceNumber,
])->send();
```

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

[](#supported-methods)

- Purchase (Regular and 3D Secure)
- Query Transaction Status
- Refund
- Reverse (Cancel)

Test Cards
----------

[](#test-cards)

For test credit cards, visit:

System Requirements
-------------------

[](#system-requirements)

- PHP &gt;= 8.1.0
- Composer
- PHP cURL extension

Support
-------

[](#support)

- For general questions, use [Stack Overflow](http://stackoverflow.com/questions/tagged/omnipay) with the `omnipay` tag
- Report bugs via [GitHub Issues](https://github.com/yasinkuyu/omnipay-paycell-sdk/issues)
- Technical support:

Documentation
-------------

[](#documentation)

For detailed integration information and API documentation, please visit [Paycell SDK Documentation](https://paycell.com.tr/paycell-sdk).

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

Other Omnipay Packages
----------------------

[](#other-omnipay-packages)

Here are some other Omnipay payment gateway implementations developed by the same author:

- **[Omnipay: NestPay](https://github.com/yasinkuyu/omnipay-nestpay)**
    NestPay (İş Bankası, Akbank, Finansbank, Denizbank, Kuveyt Türk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası, Tekstilbank, Şekerbank, Türk Ekonomi Bankası) gateway for Omnipay payment processing library.
- **[Omnipay: Paycell API](https://github.com/yasinkuyu/omnipay-paycell)**
    Turkcell Paycell API gateway for Omnipay payment processing library.
- **[Omnipay: Iyzico](https://github.com/yasinkuyu/omnipay-iyzico)**
    Iyzico payment gateway for Omnipay payment processing library.
- **[Omnipay: Paratika](https://github.com/yasinkuyu/omnipay-paratika)**
    Paratika (Asseco) payment gateway for Omnipay payment processing library.
- **[Omnipay: Posnet](https://github.com/yasinkuyu/omnipay-posnet)**
    Yapı Kredi Posnet payment gateway for Omnipay payment processing library.
- **[Omnipay: GVP](https://github.com/yasinkuyu/omnipay-gvp)**
    Garanti Virtual POS (GVP) payment gateway for Omnipay payment processing library.
- **[Omnipay: BKM Express](https://github.com/yasinkuyu/omnipay-bkm)**
    BKM Express payment gateway for Omnipay payment processing library.
- **[Omnipay: PayTR](https://github.com/yasinkuyu/omnipay-paytr)**
    PayTR payment gateway for Omnipay payment processing library.

For more information and documentation, visit the respective GitHub repositories.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance42

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

469d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/204635?v=4)[Yasin](/maintainers/yasinkuyu)[@yasinkuyu](https://github.com/yasinkuyu)

---

Top Contributors

[![yasinkuyu](https://avatars.githubusercontent.com/u/204635?v=4)](https://github.com/yasinkuyu "yasinkuyu (46 commits)")

---

Tags

paymentgatewaypaymerchantomnipaysanal-pospaycellpaycell sdk

### Embed Badge

![Health badge](/badges/yasinkuyu-omnipay-paycell-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/yasinkuyu-omnipay-paycell-sdk/health.svg)](https://phpackages.com/packages/yasinkuyu-omnipay-paycell-sdk)
```

###  Alternatives

[yasinkuyu/omnipay-iyzico

Iyzico gateway for Omnipay payment processing library

137.0k](/packages/yasinkuyu-omnipay-iyzico)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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