Skip to content

Iyzico driver for the Omnipay payment processing library

License

Notifications You must be signed in to change notification settings

kaankilic/omnipay-iyzico

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnipay: Iyzico

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

About

Iyzico driver for the Omnipay payment processing library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages