Iyzico driver for the Omnipay payment processing library
omnipay-iyzico
provides an expressive and fluent way to use iyzico with omnipay framework agnostic, multi-gateway payment processing.
Laravel omnipay-iyzico
is open-sourced software licensed under the MIT
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.
$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()){
...
}
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.
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