Skip to content
Branch: master
Go to file

Latest commit


Failed to load latest commit information.
Latest commit message
Commit time

Omnipay: Iyzico

Iyzico gateway for Omnipay payment processing library

Latest Stable Version Total Downloads Latest Unstable Version License

Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements Iyzico (Turkish Payment Gateways) support for Omnipay.

Iyzico sanal pos hizmeti için omnipay kütüphanesi.


Omnipay is installed via Composer. To install, simply add it to your composer.json file:

    "require": {
        "yasinkuyu/omnipay-iyzico": "~2.0"

And run composer to update your dependencies:

$ curl -s | php
$ php composer.phar update

Basic Usage

The following gateways are provided by this package:

  • Iyzico

Gateway Methods

  • purchase($options) - authorize and immediately capture an amount on the customer's card
  • refund($options) - refund an already processed transaction

For general usage instructions, please see the main Omnipay repository.

Unit Tests

PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.

Sample App

    <?php defined('BASEPATH') OR exit('No direct script access allowed');

    use Omnipay\Omnipay;

    class IyzicoTest extends CI_Controller {

        public function index() {
            $gateway = Omnipay::create('Iyzico');



            $options = [
                'number'        => '4242424242424242',
                'expiryMonth'   => '10',
                'expiryYear'    => '2015',
                'cvv'           => '000',
                'fistname'      => 'Yasin',
                'lastname'      => 'Kuyu'

            $response = $gateway->purchase(
                'installment'   => 2,
                'transId'       => '2233333333333333',
                'amount'        => 10.00,
                'currency'      => 'TRY',
                'card'          => $options

            $response = $gateway->authorize(
                'transId'       => 'MTQzODg3NzgwNAhQeb3hfNMVlSc2JRkb',
                'amount'        => 10.00,
                'card'          => $options

            $response = $gateway->refund(
                'transId'       => 'MTQzODg3NzgwNAhQeb3hfNMVlSc2JRkb',
                //'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options

            if ($response->isSuccessful()) {
                echo $response->getTransactionReference();
                echo $response->getMessage();
                echo $response->getError();

            // Debug



NestPay (EST)

(İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus) gateway for Omnipay payment processing library


Posnet (Yapı Kredi, Vakıfbank, Anadolubank) gateway for Omnipay payment processing library

GVP (Granti Sanal Pos)

Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) gateway for Omnipay payment processing library

BKM Express

BKM Express gateway for Omnipay payment processing library


If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request.


Iyzico gateway for Omnipay payment processing library




You can’t perform that action at this time.