Omnipay: Iyzico
Iyzico gateway for Omnipay payment processing library, (*1)
, (*2)
Omnipay is a framework agnostic, multi-gateway payment
processing library for PHP 5.3+. This package implements Iyzico (Turkish Payment Gateways) support for Omnipay., (*3)
Readme TR
Iyzico v3 (3D Secure) sanal pos hizmeti için omnipay kütüphanesi., (*4)
Test ortamım için https://sandbox-merchant.iyzipay.com/auth adresinden kayıt olup hemen sonrasında(mail onaysız) login olabilirsiniz., (*5)
Login olduktan sonra karşınıza çıkan “Cep Telefonu Doğrulama” ekranına sms kodu olarak “123456" yazıp giriş sağlayabilirsiniz. Ayarlar sayfasından api anahtarları bölümünden API anahtarı ve güvenlik anahtarı bilgilerine erişebiliyorsunuz., (*6)
Sandbox/test base url https://sandbox-api.iyzipay.com/ set edildiğinde githubdaki clientlarımız
Test kartları https://dev.iyzipay.com/tr/test-kartlari, (*7)
Ay ve yıl olarak herhangi bir ileri değer verebilirsiniz. Cvv içinde aynı şekilde 3 haneli random bir değer verebilirsiniz. 3D secure şifresi : 283126, (*8)
Installation
composer require league/omnipay iyzico/iyzipay-php yasinkuyu/omnipay-iyzico
Omnipay is installed via Composer. To install, simply add it
to your composer.json file:, (*9)
{
"require": {
"iyzico/iyzipay-php": "^2.0",
"yasinkuyu/omnipay-iyzico": "^3.0"
}
}
And run composer to update your dependencies:, (*10)
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Basic Usage
The following gateways are provided by this package:, (*11)
Gateway Methods, (*12)
- purchase($options) - authorize and immediately capture an amount on the customer's card
-
refund($options) - refund an already processed transaction, (*13)
-
checkout($options) - iyzico host payment method, (*14)
- checkout_status($options) - iyzico host payment method status
For general usage instructions, please see the main Omnipay
repository., (*15)
Unit Tests
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks., (*16)
Requirements
composer require iyzico/iyzipay-php
To use the bindings, use Composer's autoload:
require_once('vendor/autoload.php');
Composer dependencies require a PHP version ">= 8.1.0", (*17)
Sample App
purchase.php
refund.php
void.php
checkout.php (iyzico host)
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., (*18)
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., (*19)
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., (*20)