2017 © Pedro Peláez
 

library omnipay-nestpay

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

image

yasinkuyu/omnipay-nestpay

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

  • Friday, March 23, 2018
  • by yasinkuyu
  • Repository
  • 7 Watchers
  • 34 Stars
  • 472 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 7 Open issues
  • 6 Versions
  • 9 % Grown

The README.md

Omnipay: NestPay

NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası sanal pos) gateway for Omnipay payment processing library, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

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

NestPay (eski adıyla EST) altyapısını kullanan Türkiye bankaları için Omnipay kütüphanesi. Desteklenmesi hedeflenen bankalar; İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası, (*4)

Installation

composer require yasinkuyu/omnipay-nestpay:~2.0

Basic Usage

The following gateways are provided by this package:, (*5)

  • NestPay
    • İş Bankası
    • Akbank
    • Finansbank
    • Denizbank
    • Kuveytturk
    • Halkbank
    • Anadolubank
    • ING Bank
    • Citibank
    • Cardplus
    • Ziraat Bankası

Gateway Methods, (*6)

  • authorize($options) - authorize an amount on the customer's card
  • capture($options) - capture an amount you have previously authorized
  • purchase($options) - authorize and immediately capture an amount on the customer's card
  • refund($options) - refund an already processed transaction
  • void($options) - generally can only be called up to 24 hours after submitting a transaction
  • credit($options) - money points processed transaction
  • settle($options) - settlement query processed transaction

For general usage instructions, please see the main Omnipay repository., (*7)

Unit Tests

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

Sample App

        <?php

        require __DIR__ . '/vendor/autoload.php';

        use Omnipay\Omnipay;

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

        $gateway->setBank("isbank");
        $gateway->setUserName("api");
        $gateway->setClientId("700658785");
        $gateway->setPassword("TEST1111");
        $gateway->setTestMode(TRUE);

        $options = [
            'number'        => '5406675406675403',
            'expiryMonth'   => '12',
            'expiryYear'    => '2022',
            'cvv'           => '000',
            'email'         => 'yasinkuyu@gmail.com',
            'firstname'     => 'Yasin',
            'lastname'      => 'Kuyu'
        ];

        try {

            $response = $gateway->purchase(
            [
                //'installment'  => '', # Taksit
                //'moneypoints'  => 1.00, // Set money points (Maxi puan gir)
                'amount'        => 12.00,
                'type'          => 'Auth',
                'orderid'       => 'ORDER-3651233',
                'card'          => $options
            ]
            )->send();
            /*
            $response = $gateway->authorize(
            [
                'type'          => 'PostAuth',
                'orderid'       => 'ORDER-365123',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->capture(
            [
                'orderid'       => 'ORDER-365123',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();


            $response = $gateway->refund(
            [
                'orderid'       => 'ORDER-365123',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->credit(
            [
                'orderid'       => 'ORDER-365123',
                'amount'        => 1.00,
                'currency'      => 'TRY', // Optional (default parameter TRY)
                'card'          => $options
            ]
            )->send();

            $response = $gateway->void(
            [
                'orderid'       => 'ORDER-365123',
                'amount'        => 1.00,
                'currency'      => 'TRY',
                'card'          => $options
            ]
            )->send();

            $response = $gateway->credit(
            [
                'amount'        => 1.00,
                'card'          => $options
            ]
            )->send();

            $response = $gateway->settle(
            [
                'settlement'   => true,
                'card'         => $options
            ]
            )->send();

            $response = $gateway->money(
            [
                'moneypoints'  => "1",
                'card'         => $options
            ]
            )->send();
            */

            if ($response->isSuccessful()) {
                echo "Successful";

            } elseif ($response->isRedirect()) {
                $response->redirect();

            } else {
                exit($response->getMessage());
            }
        } catch (\Exception $e) {
            exit($e->getMessage());
        }

        // Debug
        //var_dump($response);

Posnet

Posnet (Yapı Kredi, Vakıfbank, Anadolubank) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-posnet, (*9)

Iyzico

Iyzico gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-iyzico, (*10)

GVP (Granti Sanal Pos)

Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-gvp, (*11)

BKM Express

BKM Express gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-bkm, (*12)

Paratika

Paratika (Asseco) (Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank, Vakıfbank ) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-paratika, (*13)

Composer Installation

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

{
    "require": {
        "yasinkuyu/omnipay-nestpay": "~2.0"
    }
}

And run composer to update your dependencies:, (*15)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Support

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., (*16)

Roadmap

3D Secure payment, (*17)

The Versions

23/03 2018

dev-yasin

dev-yasin https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus ziraat bankası

03/02 2018

2.0.4

2.0.4.0 https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus ziraat bankası

04/08 2015

2.0.3

2.0.3.0 https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus

03/08 2015

2.0.2

2.0.2.0 https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus turkish pos

03/08 2015

2.0.1

2.0.1.0 https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus turkish pos

31/07 2015

2.0

2.0.0.0 https://github.com/yasinkuyu/omnipay-nestpay

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

  Sources   Download

MIT

The Requires

 

The Development Requires

by Yasin Kuyu

payment pay gateway merchant omnipay est finansbank akbank kuveytturk sanal pos nestpay isbank denizbank halkbank anadolubank ing bank citibank cardplus turkish pos