2017 © Pedro Peláez
 

library iyzico

iyzico payment system laravel package

image

hkucuk/iyzico

iyzico payment system laravel package

  • Wednesday, August 19, 2015
  • by medyun
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel PHP Framework

Build Status Total Downloads Latest Stable Version Latest Unstable Version License, (*1)

This package offers simply iyzico laravel bundled payment system API for PHP Framework., (*2)

Installation

The hkucuk/iyzico Service Provider can be installed via Composer by requiring the hkucuk/iyzico package in your project's composer.json., (*3)

{
    "require": {
        "hkucuk/iyzico": "v1.0.0"
    }
}

After need update composer, (*4)

composer update

To use the hkucuk/iyzico Service Provider, you must register the provider when bootstrapping your Laravel application., (*5)

Find the providers key in your config/app.php and register the hkucuk/iyzico Service Provider., (*6)

    'providers' => array(
        // ...
        'Hkucuk\Iyzico\IyzicoServiceProvider',
    )

Find the aliases key in your config/app.php and add the AWS facade alias., (*7)

    'aliases' => array(
        // ...
        'Iyzico'          => 'Hkucuk\Iyzico\Facades\Iyzico',
    )

Configuration

By default, the package uses the following environment variables to auto-configure the plugin without modification:, (*8)

api_id
secret

To customize the configuration file, publish the package configuration using Artisan., (*9)

php artisan vendor:publish

Update your settings in the generated app/config/packages/hkucuk/iyzico/config.php configuration file., (*10)

return array(

    'api_id' => 'iyzico-api-id',

    'secret' => 'iyzico-secret'

);

Usage

İyzico working principle is two request, two response. We want the first payment forms iyzico like this:, (*11)

  $data = array(
        "customer_language" => "tr",
        "mode" => "test",
        "external_id" => rand(),
        "type" => "CC.DB",
        "installment" => true,
        "amount" => 1099,
        "return_url" => "http://example.com/iyzicoResponse",
        "currency" => "TRY"
    );

    $response = Iyzico::getForm($data);

    echo $response->code_snippet;

code_snippet will return to us with means of payment form iyzico., (*12)

After payment form approved will send the results to return iyzico mentioned URLs., (*13)

  $data = json_decode(Input::get("json"), true);
  var_dump($data);

The Versions

19/08 2015

dev-master

9999999-dev

iyzico payment system laravel package

  Sources   Download

The Requires

 

laravel iyzico

19/08 2015

v1.0.0

1.0.0.0

iyzico payment system laravel package

  Sources   Download

The Requires

 

laravel iyzico