Payconn is a framework agnostic, multi-gateway payment processing library for PHP. This package implements common classes required by Payconn.
Payment Gateways
All payment gateways must implement GatewayInterface, and will usually extend AbstractGateway for basic functionality.
The following gateways are available:
Gateway | Composer Package | Author | Build Status |
---|---|---|---|
Nestpay (EST) | payconn/nestpay | Murat SAÇ | |
Vakıf | payconn/vakif | Murat SAÇ | |
iPara | payconn/ipara | Murat SAÇ | |
Garanti | payconn/garanti | Murat SAÇ | |
Wirecard | payconn/wirecard | Murat SAÇ | |
QNB Finansbank | ahmett/payconn-qnbfinansbank | Ahmet KABA |
Installation
$ composer require <COMPOSER-PACKAGE>
Basic Usage
use Payconn\Common\CreditCard;
use Payconn\Garanti;
use Payconn\Garanti\Currency;
use Payconn\Garanti\Model\Purchase;
use Payconn\Garanti\Token;
$token = new Token('YOUR_TERMINAL_ID', 'YOUR_MERCHANT_ID', 'YOUR_PASS');
$creditCard = new CreditCard('4824894728063019', '23', '07', '172');
$purchase = new Purchase();
$purchase->setTestMode(true);
$purchase->setCreditCard($creditCard);
$purchase->setCurrency(Currency::TRY);
$purchase->setAmount(100);
$purchase->setInstallment(1);
$purchase->generateOrderId();
$response = (new Garanti($token))->purchase($purchase);
if($response->isSuccessful()){
// success!
}
Support
If you are having general issues with Payconn, we suggest posting on Stack Overflow. Be sure to add the
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.
Security
If you discover any security related issues, please email muratsac@mail.com instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.