GithubHelp home page GithubHelp logo

farukcam / kuveytturk Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 7.0 25 KB

Laravel 5 Kuveyt Turk Sanal Pos

Home Page: https://packagist.org/packages/farukcam/kuveytturk

License: MIT License

PHP 100.00%
laravel-5 kuveyt sanalpos laravel laravel-framework laravel55 laravel54 laravel-5-package laravel-package

kuveytturk's Introduction

Laravel Kuveyt Turk Sanal Pos

Buy me a coffee 😇Buy me a coffee 😇

Komut satırından bu kodu çalıştırınız: Laravel 7'den küçük sürümler için :

composer require farukcam/kuveytturk

Laravel 7 için : composer.json içerisinde require tagının içerisine

"farukcam/kuveytturk": "^1.2",

yazıp, ardından composer update yapıyoruz.

sonrasında ;

config/app.php dosyasına aşağıda bulunan satırları ekliyoruz.

return [
    // ...

    'providers' => [
        // ...

        farukcam\Kuveytturk\KuveytturkServiceProvider::class
    ],

    // ...

    'aliases' => [
        // ...

        'Kuveytturk'    => farukcam\Kuveytturk\Facades\Kuveytturk::class
    ],
);

Ayarlar

php artisan vendor:publish

komutunu kullanarak config/kuveytturk.php dosyasını yayınlıyoruz.

kuveytturk.php

return [
    "Type"                => "Sale",
    "APIVersion"          => "1.0.0",
    "ApiUrl"              => "https://boa.kuveytturk.com.tr/sanalposservice/Home/ThreeDModelPayGate", // Test API url : https://boatest.kuveytturk.com.tr/boa.virtualpos.services/Home/ThreeDModelPayGate
    "CustomerId"          => "Müşteri Numarası", // Test Müşteri Numarası : 400235
    "CurrencyCode"        => "0949", // Para birimi TL 0949
    "MerchantId"          => "Mağaza Kodu", // Test Magaza Kodu : 496
    "OkUrl"               => "Basarili sonuç alinirsa, yönledirelecek sayfa",
    "FailUrl"             => "Basarisiz sonuç alinirsa, yönledirelecek sayfa",
    "UserName"            => "Web Yönetim ekranlarindan olusturulan api rollü kullanici", // Test API Kullanıcısı : apiuser1
    "Password"            => "Web Yönetim ekranlarindan olusturulan api rollü kullanici sifresi",  // Test API Kullanıcı Şifresi : api123
    "TransactionSecurity" => "3" // 3d Secure = 3 , 3d'siz = 1
];

Kullanıma hazır!

#Kullanımı

use Kuveytturk;

public function index()
{
    $kuveytturk = Kuveytturk::setName('Faruk Çam')
        ->setCardNumber(4033602562020327)
        ->setCardExpireDateMonth(01)
        ->setCardExpireDateYear(30)
        ->setCardCvv2(861)
        ->setOrderId(1)
        ->setAmount(100)
        ->pay();
}

kuveytturk's People

Contributors

farukcam avatar mhd-fettah avatar mohamad-shawa avatar sbrsr avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

kuveytturk's Issues

419 expired alıyorum

sanırım csrf olmadığı için bilgileri gönderdikten sonra olumlu olumsuz sonuç alınca 419 expired sayfasına yönlendiriyor. Nasıl csrf ekleyebiliriz gelen response a veya nasıl bu linki csrfden hariç tutabiliriz?

Class not found

php artisan vendor:publish yaptığımda
Class 'Farukcam\Kuveytturk\KuveytturkServiceProvider' not found hatası alıyorum?

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.