payconn/garanti
Composer 安装命令:
composer require payconn/garanti
包简介
Garanti (GVP) payment processing library for PHP
README 文档
README
Payconn: Garanti
Garanti (GVP) gateway for Payconn payment processing library
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/garanti
Supported banks
- Garanti
Supported methods
- purchase
- authorize
- complete
- refund
- cancel
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('30691297', '7000679', '123qweASD/'); $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! }
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.
统计信息
- 总下载量: 104
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-07