Code Monkey home page Code Monkey logo

omnipay-nestpay's Introduction

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

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

Installation

composer require yasinkuyu/omnipay-nestpay:~2.0

Basic Usage

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 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
        
        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'         => '[email protected]',
        	'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

Iyzico

Iyzico gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-iyzico

GVP (Granti Sanal Pos)

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

BKM Express

BKM Express gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-bkm

Paratika

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

Composer Installation

Omnipay is installed via Composer. To install, simply add it to your composer.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

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.

Roadmap

3D Secure payment

omnipay-nestpay's People

Contributors

lbali avatar phatyh avatar yasinkuyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

omnipay-nestpay's Issues

Wordpress

yasin abi kolay gelsin bunu wordpresse nasıl kurarız ben öyle ftp dizine attım odeme.php çalıştırınca bu hatayı veriyor bide "Sorry, there was an error processing your payment. Please try again later."

merhaba

merhaba hocam size nasıl ulaşabilirim

3d pay hosted hakkında

Merhabalar,

3d Pay hosted yöntemi kullanılabiliyor mu?

Teşekkürler, Elininize Sağlık.

Hangi bilgileri kullanmam gerek ?

merhaba
$gateway->setUserName("DENIZTEST");
$gateway->setClientId("800100000");
$gateway->setPassword("DENIZTEST123");
bunlar, bankadan aldığımız hangi bilgilere karşılık geliyor acaba ?
username dediği api kullanıcı adı mı? client ID sanırım işyeri numarası, doğru mudur ?

Denizbank

Denizbank artık EST altyapısını kullanmıyor, bilginize.

PHP 8 Desteği

Merhabalar,
PHP 8 de hata vermektedir.

Bilgilerinizle

İyi Çalışmalar

3d Pay kullanımı

Merhaba,
3d pay modelinde nasıl kullanabiliriz bu yapıyı ?

Teşekkürler...

Laravel 5.7.x Kurulum Hatası

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package symfony/http-foundation (installed at v4.2.1, required as 4.1.1) is satisfiable by symfony/http-foundation[v4.2.1] but these conflict with your requirements or minimum-stability.
  Problem 2
    - yasinkuyu/omnipay-nestpay 2.0 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.1 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.2 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.3 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.4 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.5 requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - yasinkuyu/omnipay-nestpay 2.0.x-dev requires omnipay/common ~2.0 -> satisfiable by omnipay/common[2.3.2, 2.4.0, 2.5.2, 2.5.x-dev, v2.0.0, v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.3.3, v2.3.4, v2.4.1, v2.5.0, v2.5.1].
    - omnipay/common 2.3.2 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common 2.4.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common 2.5.2 requires symfony/http-foundation ~2.1|~3.0 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev].
    - omnipay/common 2.5.x-dev requires symfony/http-foundation ~2.1|~3.0 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev].
    - omnipay/common v2.0.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.1.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.2.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.3.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.3.1 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.3.3 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.3.4 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.4.1 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.5.0 requires symfony/http-foundation ~2.1 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev].
    - omnipay/common v2.5.1 requires symfony/http-foundation ~2.1|~3.0 -> satisfiable by symfony/http-foundation[2.1.x-dev, 2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.1.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.2.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.3.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.4.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.5.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.6.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.7.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 2.8.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 3.0.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 3.1.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 3.2.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 3.3.x-dev].
    - Can only install one of: symfony/http-foundation[v4.1.1, 3.4.x-dev].
    - Installation request for symfony/http-foundation 4.1.1 -> satisfiable by symfony/http-foundation[v4.1.1].
    - Installation request for yasinkuyu/omnipay-nestpay ~2.0 -> satisfiable by yasinkuyu/omnipay-nestpay[2.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.x-dev].


Installation failed, reverting ./composer.json to its original content.

Bağımlılıklarıyla beraber paketlenmiş bir sürüm mevcut mu acaba? Şu an laravel sürümü düşürmem mümkün değil. Farklı sunucularda aktif olarak çalışan bir uygulamaya ekleyeceğim.

Laravel 5.7 uyumluluğu

Merhaba,
Kütüphaneyi laravel son sürüm olan 5.7 üzerinde kullanmaya çalışıyorum fakat composer'ın verdiği bağımlılık sorununu bir türlü çözemedim.
Kütüphanenin hangi laravel sürümüyle uyumlu olduğunu söylerseniz veya 5.7 ile kullanmak için bir yol gösterebilirseniz çok sevinirim

Boş sayfa

3D ile ödeme işlemi yapmak istiyorum yönlenen sayfa boş çıkıyor neden ? hata mı yoksa bir şeyi eksik mi yapıyorum ?

omnipay/common 2.4 sonrasında hata

"omnipay/common": "~2.0" kullanıldığı için şuan aktif olarak 2.5 versiyonunu yüklemekte ve aşağıdaki hatayı vermekte.

Class must be declared abstract or implement methods 'completeAuthorize', 'deleteCard', 'completePurchase', 'createCard', 'updateCard'

System based initialization problem. Please try again later.

Dökümantasyondaki gibi bir kullanımda, aşağıdaki parametrelerle bu hatayı alıyorum, neyden kaynaklı olabilir
*Edit: Kullanıcı adı, şifre ve clientid alanlarını burada maskeledim, girdiğim bilgiler doğru
System based initialization problem. Please try again later.

$gateway = Omnipay::create('NestPay');
$gateway->setBank("akbank");
$gateway->setUserName("*******");
$gateway->setClientId("*******");
$gateway->setPassword("*******");

Ziraat Bankası Hakkında

Merhaba,

Öncelikle bu faydalı kütüphane için teşekkürler. Desteklenmesi hedeflenen bankalar arasında Ziraat Bankası bulunmuyor ancak Ziraat Bankası da Nestpay kullanıyor. Acaba sizce bu kürüphaneyi Ziraat Bankası sanal POS için kullanabilir miyiz?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.