2017 © Pedro Peláez
 

library omnipay-paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

image

yasinkuyu/omnipay-paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

  • Thursday, September 21, 2017
  • by yasinkuyu
  • Repository
  • 1 Watchers
  • 4 Stars
  • 81 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 3 Open issues
  • 4 Versions
  • 7 % Grown

The README.md

Omnipay: Paratika

Paratika (Asseco) (Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank, Vakıfbank ) 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 Paratika (Turkish Payment Gateways) support for Omnipay., (*3)

Paratika Api Entegrasyonu, Asseco firmasının yeni sanal pos hizmeti için Omnipay kütüphanesi. Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank ve Vakıfbank taksit imkanı sunuyor., (*4)

Installation

composer require yasinkuyu/omnipay-paratika:~2.0

Basic Usage

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

  • Paratika
    • Akbank
    • TEB
    • Hakbank
    • Finansbank
    • İş Bankası
    • Şekerbank
    • Vakıfbank

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
  • session($options) - session parameters required to purchase.
  • query($options) - query for various other inquiries.

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

Samples

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

        use Omnipay\Omnipay;

        $gateway = Omnipay::create('Paratika');
        $gateway->setMerchant('10000000');
        $gateway->setMerchantUser('test@yasinkuyu.net');
        $gateway->setMerchantPassword('Paratika123');
        $gateway->setSecretKey('QOClasdJUuDDWasdasdasd');
        $gateway->setBank('ISBANK');

        $gateway->setMode("NonDirectPost3D");
        //Diğer paremetreler: api DirectPost3D NonDirectPost3D
        //3D test için işlem şifresi a ya da 1

        // Zorunlu parametreler
        $card = [
            'number'        => '5456165456165454',
            'expiryMonth'   => '12',
            'expiryYear'    => '2020',
            'cvv'           => '000',

            'email'         => 'info@insya.com',
            'firstname'     => 'Insya',
            'lastname'      => 'Bilisim',
            'phone'         => '95555050505',

            'billingAddress1' => 'Test sokak',
            'billingCity'     => 'Tekirdag',
            'billingPostcode' => '59850',
            'billingCountry'  => 'Turkey',

            'shippingAddress1' => 'Test sokak',
            'shippingCity'     => 'Tekirdag',
            'shippingPostcode' => '59850',
            'shippingCountry'  => 'Turkey'
        ];

        try {

            $options = [
                'amount'        => 100.00,
                'currency'      => 'TRY',
                //'installment'   => 0, // Taksit
                'orderId'       => 'S-12341308', // Benzersiz olmalı.
                'returnUrl'     => 'http://local.desktop/Paratika/callback.php',
                'cancelUrl'     => 'http://local.desktop/Paratika/callback.php',
                'sessionType'   => 'PAYMENTSESSION', //Diğer parametreler: PAYMENTSESSION WALLETSESSION
                'card'          => $card,
            ];

            // SessionToken almak için oturum açalım
            $sessionResponse = $gateway->session($options)->send();

            if ($sessionResponse->isSuccessful()) {

                    $sessionToken =  $sessionResponse->getSessionToken();

                    // Oturum değiştikenini satış ve diğer işlemlerde kullanmak için tanımlayalım.
                    $gateway->setSessionToken($sessionToken);

                    // Auth (Satış) işlemi
                    $response = $gateway->purchase($options)->send();

                    if ($response->isSuccessful()) {
                        echo "İşlem başarılı transactionId:". $response->getTransactionId();
                    } elseif ($response->isRedirect()) {
                        $response->redirect();
                    } else {
                        echo $response->getMessage();
                    }

            } elseif ($sessionResponse->isRedirect()) {
                $sessionResponse->redirect();
            } else {
                echo $sessionResponse->getMessage();
            }


        } catch (\Exception $e) {
            echo $e->getMessage();
        }

NestPay (EST)

(İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-nestpay, (*8)

Posnet

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

İyzico

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)

Composer Installation

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

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

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

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

Roadmap

The Versions

21/09 2017

dev-master

9999999-dev https://github.com/yasinkuyu/omnipay-paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Yasin Kuyu

payment pay gateway merchant omnipay finansbank akbank sanal pos isbank paratika teb vakıfbank sekerbank

09/08 2017

2.0.2

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

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Yasin Kuyu

payment pay gateway merchant omnipay finansbank akbank sanal pos isbank paratika teb vakıfbank sekerbank

12/06 2017

1.1.1

1.1.1.0 https://github.com/yasinkuyu/omnipay-paratika

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Yasin Kuyu

payment pay gateway merchant omnipay finansbank akbank sanal pos paratika teb vakıfbank sekerbank

12/06 2017

2.0.1

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

Paratika (Asseco) MOTO/3D gateway for Omnipay payment processing library

  Sources   Download

MIT

The Requires

 

by Yasin Kuyu

payment pay gateway merchant omnipay finansbank akbank sanal pos paratika teb vakıfbank sekerbank