kaankilic/omnipay-iyzico

Iyzico gateway for the Omnipay payment processing library

1.0.0 2018-04-29 20:36 UTC

This package is auto-updated.

Last update: 2024-12-13 00:26:17 UTC


README

Iyzico driver for the Omnipay payment processing library

Build Status Total Downloads Latest Stable Version License

Introduction

omnipay-iyzico provides an expressive and fluent way to use iyzico with omnipay framework agnostic, multi-gateway payment processing.

License

Laravel omnipay-iyzico is open-sourced software licensed under the MIT

Installation

To get started with omnipay-iyzico, use Composer to add the package to your project's dependencies:

composer require kaankilic/omnipay-iyzico

For general usage instructions, please see the main Omnipay repository.

Basic Usage

	$gateway = Omnipay::create('Iyzico');
	$formInputData = array(
	    'name' => 'Bobby',
	    'lastname' => 'Tables',
	    'number' => '4131111111111117',
	    'expiryMonth' => '08',
	    'expiryYear' => '2023',
	    'cvv' => '001',
	    'billingCity'	=> 'Amsterdam',
	    'billingAddress1'	=> 'test address',
		'billingCountry' => 'Nederlands',
		'email'	=> 'bl4cksta@gmail.com',
		'postCode'	=> 'NL11100'
	);
	$card = new CreditCard($formInputData);
	$request = $gateway->authorize(['identityNumber'=>'IDENTITY_NUMBER','callbackUrl' => 'https://pos.app/']);
	$request->setCard($card);
	$request->setApiKey('sandbox-API-KEY');
	$request->setSecretKey('sandbox-SECRET-KEY');
	$basket = new \Omnipay\Common\ItemBag();
	$item = new \Omnipay\Common\Item(['name' => 'item name 1', 'price'=> '40.00']);
	$basket->add($item);

	$request->setItems($basket);
	$response = $request->send();
	if($response->isSuccessful()){
		...
	}

Support

If you are having general issues with Omnipay, we suggest posting on Stack Overflow. Be sure to add the omnipay tag so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a mailing list which you can subscribe to.

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.

Contributions

I am the creator and single contributor of the project. So, Feel free to contribute something useful. Please use Github for reporting bugs, and making comments or suggestions