payconn/nestpay

Payconn payment processing library for PHP

v1.2.0 2020-09-28 05:57 UTC

This package is auto-updated.

Last update: 2024-03-28 13:50:40 UTC


README

68747470733a2f2f7777772e7061726174696b612e636f6d2e74722f77702d636f6e74656e742f7468656d65732f77702d626f6f7473747261702d737461727465722f696d672f7061726174696b612d6c6f676f2e706e67

Payconn: Nestpay (EST)

Nestpay (A Bank, Ak Bank, Anadolu Bank, Finans Bank, Halk Bank, ING Bank, İş Bank, Şeker Bank, Türk Ekonomi Bank (TEB), Ziraat Bank) gateway for Payconn payment processing library

68747470733a2f2f7472617669732d63692e636f6d2f706179636f6e6e2f6e6573747061792e7376673f6272616e63683d6d6173746572

Installation | Supported Methods | Basic Usages


Payconn is a framework agnostic, multi-gateway payment processing library for PHP. This package implements common classes required by Payconn.

Installation

$ composer require payconn/nestpay

Supported methods

  • purchase
  • authorize
  • complete
  • refund
  • cancel

Basic Usages

use Payconn\Common\CreditCard;
use Payconn\Nestpay\Token;
use Payconn\Nestpay\Currency;
use Payconn\Nestpay\Model\Purchase;
use Payconn\Akbank;

$token = new Token('CLIENT_ID', 'USERNAME', 'PASS');
$creditCard = new CreditCard('4355084355084358', '26', '12', '000');
$purchase = new Purchase();
$purchase->setAmount(1);
$purchase->setInstallment(1);
$purchase->setCurrency(Currency::TRY);
$purchase->setCreditCard($creditCard);
$purchase->setTestMode(true);
$response = (AkBank($token))->purchase($purchase);
if($response->isSuccessful()){
    // success!
}

Change log

Please see UPGRADE for more information on how to upgrade to the latest version.

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.