payconn/vakif

Vakıf (Vpos724) payment processing library for PHP

v1.1.0 2020-09-28 06:08 UTC

This package is auto-updated.

Last update: 2024-03-28 13:55:53 UTC


README

68747470733a2f2f7777772e76616b696662616e6b2e636f6d2e74722f696d672f6c6f676f2e706e67

Payconn: Vakıf (Vpos724)

Vakif (Vpos724) gateway for Payconn payment processing library

68747470733a2f2f7472617669732d63692e636f6d2f706179636f6e6e2f76616b69662e7376673f6272616e63683d6d6173746572

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/vakif

Supported banks

  • Vakıf
  • Yapı Kredi

Supported methods

  • purchase
  • authorize
  • complete
  • refund
  • cancel

Basic Usage

use Payconn\Common\CreditCard;
use Payconn\Vakif\Token;
use Payconn\Vakif\Model\Purchase;
use Payconn\Vakif\Currency;
use Payconn\Vakif;

$token = new Token('000100000013506', 'VP000579', '123456');
$purchase = new Purchase();
$purchase->setTestMode(true);
$purchase->setCurrency(Currency::TRY);
$purchase->setAmount(100);
$purchase->setInstallment(1);
$purchase->setCreditCard(new CreditCard('4289450189088488', '2023', '04', '060'));
$response = (new Vakif($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.