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

ActiveLibrary[Payment Processing](/categories/payments)

tcgunel/omnipay-sipay
=====================

Omnipay extension for Sipay (CCPayment)

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

Since Mar 23Pushed 3mo agoCompare

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

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

Omnipay: Sipay
==============

[](#omnipay-sipay)

**Sipay (CCPayment) driver 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 Sipay support for Omnipay.

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

[](#installation)

```
composer require tcgunel/omnipay-sipay
```

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- ext-json
- ext-openssl

Configuration
-------------

[](#configuration)

```
use Omnipay\Omnipay;

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

$gateway->setAppId('your_app_id');           // app_id from provider
$gateway->setAppSecret('your_app_secret');   // app_secret from provider
$gateway->setMerchantKey('your_merchant_key'); // merchant_key from provider
$gateway->setTestMode(true);                 // Use test endpoint
```

Provider Selection
------------------

[](#provider-selection)

This package supports multiple CCPayment providers that share the same API protocol. By default, the provider is set to `sipay`. You can switch to any supported provider:

```
$gateway->setProvider('paybull');   // Use Paybull endpoints
$gateway->setProvider('qnbpay');   // Use QNBPay endpoints
$gateway->setProvider('halkode');  // Use Halkode endpoints
```

### Supported Providers

[](#supported-providers)

ProviderTest EndpointLive Endpoint`sipay` (default)`https://provisioning.sipay.com.tr/ccpayment``https://app.sipay.com.tr/ccpayment``halkode``https://testapp.halkode.com.tr/ccpayment``https://app.halkode.com.tr/ccpayment``iqmoney``https://provisioning.iqmoneytr.com/ccpayment``https://app.iqmoneytr.com/ccpayment``parolapara``https://testccpayment.parolapara.com/ccpayment``https://ccpayment.parolapara.com/ccpayment``paybull``https://test.paybull.com/ccpayment``https://app.paybull.com/ccpayment``qnbpay``https://test.qnbpay.com.tr/ccpayment``https://portal.qnbpay.com.tr/ccpayment``vepara``https://test.vepara.com.tr/ccpayment``https://app.vepara.com.tr/ccpayment`The provider name is case-insensitive. All providers use the same API methods (purchase, refund, void, etc.).

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

[](#supported-methods)

### Purchase (Non-3D)

[](#purchase-non-3d)

```
$response = $gateway->purchase([
    'amount'       => '100.00',
    'currency'     => 'TRY',
    'card'         => $cardData,
    'installment'  => 1,
    'transactionId' => 'INV-001',
    'items'        => [
        ['name' => 'Product', 'price' => 100, 'quantity' => 1, 'description' => 'Desc'],
    ],
])->send();

if ($response->isSuccessful()) {
    echo $response->getTransactionId(); // auth_code
}
```

### Purchase (3D Secure)

[](#purchase-3d-secure)

```
$response = $gateway->purchase([
    'amount'       => '100.00',
    'currency'     => 'TRY',
    'card'         => $cardData,
    'installment'  => 1,
    'transactionId' => 'INV-001',
    'secure'       => true,
    'returnUrl'    => 'https://example.com/success',
    'cancelUrl'    => 'https://example.com/cancel',
    'clientIp'     => '127.0.0.1',
    'items'        => [
        ['name' => 'Product', 'price' => 100, 'quantity' => 1, 'description' => 'Desc'],
    ],
])->send();

if ($response->isRedirect()) {
    echo $response->getRedirectHtml(); // Render this HTML
}
```

### Complete Purchase (3D Callback)

[](#complete-purchase-3d-callback)

```
$response = $gateway->completePurchase()->send();

if ($response->isSuccessful()) {
    echo $response->getTransactionId();
}
```

### Void (Cancel)

[](#void-cancel)

```
$response = $gateway->void([
    'transactionId' => 'INV-001',
    'currency'      => 'TRY',
])->send();

if ($response->isSuccessful()) {
    echo 'Transaction cancelled.';
}
```

### Refund

[](#refund)

```
$response = $gateway->refund([
    'transactionId' => 'INV-001',
    'amount'        => '50.00',
    'currency'      => 'TRY',
])->send();

if ($response->isSuccessful()) {
    echo 'Refund successful.';
}
```

### BIN Lookup (Installment Query)

[](#bin-lookup-installment-query)

```
$response = $gateway->binLookup([
    'card'     => ['number' => '979203XXXXXXXXXX'],
    'amount'   => '100.00',
    'currency' => 'TRY',
])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
    // $data['data'] contains POS and installment info
}
```

### Installment Rates (All Commissions)

[](#installment-rates-all-commissions)

```
$response = $gateway->installmentRates([
    'currency' => 'TRY',
])->send();

if ($response->isSuccessful()) {
    $data = $response->getData();
    // $data['data'] contains all commission rates
}
```

Endpoints
---------

[](#endpoints)

Endpoints are automatically resolved based on the selected provider and test mode. See the [Provider Selection](#provider-selection) section above for the full list of endpoints.

Authentication
--------------

[](#authentication)

The gateway uses token-based authentication. A Bearer token is automatically obtained before each API request using your `app_id` and `app_secret`.

Hash Key
--------

[](#hash-key)

For purchase, refund, and void operations, a hash key is generated using AES-256-CBC encryption with the following data:

```
data = total|installment|currencyCode|merchantKey|invoiceId

```

The hash key is automatically generated and validated by the library.

Running Tests
-------------

[](#running-tests)

```
vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  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

Maturity51

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

3

Last Release

96d ago

Major Versions

v1.1.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 (7 commits)")

---

Tags

paymentgatewayomnipaysipaysanal-pos3d-secureccpayment

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

###  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)
