Skip to content

payconn/payconn.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

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Ç Build Status
Vakıf payconn/vakif Murat SAÇ Build Status
iPara payconn/ipara Murat SAÇ Build Status
Garanti payconn/garanti Murat SAÇ Build Status
Wirecard payconn/wirecard Murat SAÇ Build Status
QNB Finansbank ahmett/payconn-qnbfinansbank Ahmet KABA Build Status

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 [email protected] instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

About

Documention & Community Pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published