ampeco/omnipay-nestpay
Composer 安装命令:
composer require ampeco/omnipay-nestpay
包简介
NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası sanal pos) gateway for Omnipay payment processing library
关键字:
README 文档
README
NestPay (EST) (İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası sanal pos) gateway for Omnipay payment processing library
For Omnipay v3.x
Omnipay is a framework agnostic, multi-gateway payment processing library for PHP 5.3+. This package implements NestPay (Turkish Payment Gateways) support for Omnipay.
NestPay (eski adıyla EST) altyapısını kullanan Türkiye bankaları için Omnipay kütüphanesi. Desteklenmesi hedeflenen bankalar; İş Bankası, Akbank, Finansbank, Denizbank, Kuveytturk, Halkbank, Anadolubank, ING Bank, Citibank, Cardplus, Ziraat Bankası
Supports the API gateway as well as the HTTP Post Gateway methods (3d_pay_hosting, 3d_pay, pay_hosting)
Installation
composer require ampeco/omnipay-nestpay:~3.1
Basic Usage
The following gateways are provided by this package:
- NestPay
- İş Bankası
- Akbank
- Finansbank
- Denizbank
- Kuveytturk
- Halkbank
- Anadolubank
- ING Bank
- Citibank
- Cardplus
- Ziraat Bankası
Gateway Methods
- authorize($options) - authorize an amount on the customer's card
- capture($options) - capture an amount you have previously authorized
- purchase($options) - authorize and immediately capture an amount on the customer's card
- refund($options) - refund an already processed transaction
- void($options) - generally can only be called up to 24 hours after submitting a transaction
- credit($options) - money points processed transaction
- settle($options) - settlement query processed transaction
- status($options) - returns status message of the transaction
- createCard($options) - save a credit card using Merchant Safe
- deleteCard($options) - disable a saved credit card using Merchant Safe
For PostGateway
- authorize($options) - forwards the user via HTTP Post to gateway for a PreAuth
- purchase($options) - forwards the user via HTTP Post to gateway for an Auth
- acceptNotification - accepts the result notification from the gateway
For general usage instructions, please see the main Omnipay repository.
Unit Tests
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. No
Sample App
<?php
require __DIR__ . '/vendor/autoload.php';
use Omnipay\Omnipay;
$gateway = Omnipay::create('NestPay');
$gateway->setBank("denizbank");
$gateway->setUserName("DENIZTEST");
$gateway->setClientId("800100000");
$gateway->setPassword("DENIZTEST123");
$gateway->setTestMode(TRUE);
$options = [
'number' => '5406675406675403',
'expiryMonth' => '12',
'expiryYear' => '2022',
'cvv' => '000',
'email' => 'yasinkuyu@gmail.com',
'firstname' => 'Yasin',
'lastname' => 'Kuyu'
];
try {
$response = $gateway->purchase(
[
//'installment' => '', # Taksit
//'moneypoints' => 1.00, // Set money points (Maxi puan gir)
'amount' => 12.00,
'type' => 'Auth',
'transactionId' => 'ORDER-3651233',
'card' => $options
]
)->send();
/*
$response = $gateway->authorize(
[
'type' => 'PostAuth',
'transactionId' => 'ORDER-365123',
'card' => $options
]
)->send();
$response = $gateway->capture(
[
'transactionId' => 'ORDER-365123',
'amount' => 1.00,
'currency' => 'TRY',
'card' => $options
]
)->send();
$response = $gateway->refund(
[
'transactionId' => 'ORDER-365123',
'amount' => 1.00,
'currency' => 'TRY',
'card' => $options
]
)->send();
$response = $gateway->credit(
[
'transactionId' => 'ORDER-365123',
'amount' => 1.00,
'currency' => 'TRY', // Optional (default parameter TRY)
'card' => $options
]
)->send();
$response = $gateway->void(
[
'transactionId' => 'ORDER-365123',
'amount' => 1.00,
'currency' => 'TRY',
'card' => $options
]
)->send();
$response = $gateway->credit(
[
'amount' => 1.00,
'card' => $options
]
)->send();
$response = $gateway->settle(
[
'settlement' => true,
'card' => $options
]
)->send();
$response = $gateway->money(
[
'moneypoints' => "1",
'card' => $options
]
)->send();
*/
if ($response->isSuccessful()) {
echo "Successful";
} elseif ($response->isRedirect()) {
$response->redirect();
} else {
exit($response->getMessage());
}
} catch (\Exception $e) {
exit($e->getMessage());
}
// Debug
//var_dump($response);
Posnet
Posnet (Yapı Kredi, Vakıfbank, Anadolubank) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-posnet
Iyzico
Iyzico gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-iyzico
GVP (Granti Sanal Pos)
Gvp (Garanti, Denizbank, TEB, ING, Şekerbank, TFKB) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-gvp
BKM Express
BKM Express gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-bkm
Paratika
Paratika (Asseco) (Akbank, TEB, Halkbank, Finansbank, İş Bankası, Şekerbank, Vakıfbank ) gateway for Omnipay payment processing library https://github.com/yasinkuyu/omnipay-paratika
Composer Installation
Omnipay is installed via Composer. To install, simply add it
to your composer.json file:
{
"require": {
"ampeco/omnipay-nestpay": "~3.1"
}
}
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update
Support
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.
Roadmap
3D Secure payment
ampeco/omnipay-nestpay 适用场景与选型建议
ampeco/omnipay-nestpay 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 45.15k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 12 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「payment」 「pay」 「gateway」 「merchant」 「omnipay」 「est」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ampeco/omnipay-nestpay 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ampeco/omnipay-nestpay 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ampeco/omnipay-nestpay 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
repository php library
Payyo Gateway for the Omnipay payment processing library
Библиотека для приема платежей через Альфабанк.
Some pre-defined rules for validation in Omnipay payment processing library.
BluePay gateway for the Omnipay payment processing library
支付宝接口扩展包
统计信息
- 总下载量: 45.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 30
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-03