- Notifications
You must be signed in to change notification settings - Fork32
NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası) gateway for Omnipay payment processing library
License
yasinkuyu/omnipay-nestpay
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası sanal pos) gateway for Omnipay payment processing library
Omnipay is a framework agnostic, multi-gateway paymentprocessing library for PHP 5.3+. This package implements NestPay (Turkish Payment Gateways) support for Omnipay.
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ı
composer require yasinkuyu/omnipay-nestpay:~2.0
The following gateways are provided by this package:
- NestPay
- İş Bankası
- Akbank
- Finansbank
- Denizbank
- Kuveytturk
- Halkbank
- Anadolubank
- ING Bank
- Citibank
- Cardplus
- Ziraat Bankası
Gateway Methods
- 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 mainOmnipayrepository.
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
<?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 (Yapı Kredi, Vakıfbank, Anadolubank) gateway for Omnipay payment processing libraryhttps://github.com/yasinkuyu/omnipay-posnet
Iyzico gateway for Omnipay payment processing libraryhttps://github.com/yasinkuyu/omnipay-iyzico
Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) gateway for Omnipay payment processing libraryhttps://github.com/yasinkuyu/omnipay-gvp
BKM Express gateway for Omnipay payment processing libraryhttps://github.com/yasinkuyu/omnipay-bkm
Paratika (Asseco) (Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank, Vakıfbank ) gateway for Omnipay payment processing libraryhttps://github.com/yasinkuyu/omnipay-paratika
Omnipay is installed viaComposer. To install, simply add itto yourcomposer.json
file:
{"require": {"yasinkuyu/omnipay-nestpay":"~2.0" }}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php$ php composer.phar update
If you believe you have found a bug, please report it using theGitHub issue tracker,or better yet, fork the library and submit a pull request.
3D Secure payment
About
NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası) gateway for Omnipay payment processing library