BKM Express gateway for Omnipay payment processing library
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements BKM Express (Turkish Payment Gateways) support for Omnipay.
BKM Express sanal pos hizmeti için omnipay kütüphanesi.
Omnipay is installed via Composer. To install, simply add it
to your composer.json
file:
{
"require": {
"yasinkuyu/omnipay-bkm": "~2.0"
}
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
The following gateways are provided by this package:
- BKM Express
Gateway Methods
- purchase($options) - authorize and immediately capture an amount on the customer's card
- refund($options) - refund an already processed transaction
For general usage instructions, please see the main Omnipay repository.
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
<?php defined('BASEPATH') OR exit('No direct script access allowed');
use Omnipay\Omnipay;
class BkmTest extends CI_Controller {
public function index() {
$gateway = Omnipay::create('Bkm');
$gateway->setBank("akbank");
$gateway->setMid("7b928290-b6d2-469e-ac10-29eb36b8c1f6");
$gateway->setTestMode(TRUE);
$response = $gateway->purchase([
'amount' => 10.00
]
)->send();
if ($response->isSuccessful()) {
echo $response->getTransactionReference();
echo $response->getMessage();
}else{
echo $response->getError();
}
// Debug
//var_dump($response);
}
}
(İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-nestpay
Iyzico gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-iyzico
Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-gvp
Posnet (Yapı Kredi, Vakıfbank, Anadolubank) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-posnet
Paratika (Asseco) (Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank, Vakıfbank ) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-paratika
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.