8000 GitHub - fkomaralp/HepsiPay: Laravel 5 için HepsiPay client entegrasyonu
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fkomaralp/HepsiPay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Giriş

Laravel 5 için HepsiPay client entegrasyonu

Kurulum

Kurulum için :

composer require fkomaralp/hepsipay

Sonra, config/app.php dosyasını aşağıdaki şekilde düzenle:

'providers' => [
    //...

            Fkomaralp\HepsiPay\HepsiPayServiceProvider::class,
],

'aliases' => [
    //...
            'HepsiPay' => Fkomaralp\HepsiPay\HepsiPayFacade::class,
],

Temel Kullanım

<?php

namespace App\Http\Controllers;

use Fkomaralp\HepsiPay\Request\CreateThreeDSecurePaymentRequest;
use Fkomaralp\HepsiPay\Options;

class SatisController extends Controller
{
    /**
     * Redirect the user to the GitHub authentication page.
     *
     * @return Response
     */
    public function satisyap()
    {
        $options = new Options();
        $options->setApiKey('API_KEY'); // Hepsipay tarafından size verilmiş olan API anahtarını giriniz
        $options->setSecretKey('SECRET_KEY'); // Hepsipay tarafından size verilmiş olan SecretKey bilgisini giriniz
        $options->setTestMode(true);

        $request = new CreateThreeDSecurePaymentRequest();
        $request->setOptions($options);
        
        //...
        
    }

}

About

Laravel 5 için HepsiPay client entegrasyonu

Resources

Stars

0 stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0