PHP code example of hkucuk / iyzico

1. Go to this page and download the library: Download hkucuk/iyzico library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hkucuk / iyzico example snippets


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

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

return array(

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

    'secret' => 'iyzico-secret'

);

  $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;

  $data = json_decode(Input::get("json"), true);
  var_dump($data);
sh
php artisan vendor:publish