fdm / payum-netaxept
该包已被弃用且不再维护。未建议替代包。
Payum网关接口,用于Netaxept API
v0.9.0
2018-06-25 09:06 UTC
Requires
- php: ^7.1
- fdm/netaxept: @stable
- payum/payum: @stable
- php-http/guzzle6-adapter: ^1.1
Requires (Dev)
- phpstan/phpstan: ^0.9.2
- phpunit/phpunit: ^7.2
- symplify/easy-coding-standard: ^4.4
This package is auto-updated.
Last update: 2020-09-06 00:12:55 UTC
README
本项目为Payum提供了围绕NETS Netaxept API的网关包装。
使用库
使用Composer安装
composer require fdm/payum-netaxept
然后,在您的代码中的某个地方,获取网关实例并使用它,例如
$payment = $myPaymentStorage->getPayment(); // Returns a payment object $gatewayFactory = new \FDM\Payum\Netaxept\NetaxeptGatewayFactory(); $gateway = $gatewayFactory->create([ 'merchantId' => $merchantId, 'token' => $token, 'sandbox' => true, 'letNetaxeptGenerateTransactionId' => true, 'transactionIdTemplate' => '' ]); $gateway->execute(new \Payum\Core\Request\Capture($payment));
贡献
提供了一些工具以简化开发。克隆项目并运行make docker-start以启动PHP Docker容器。运行make docker-shell以在容器内获取shell。运行composer install以安装依赖项。在容器内运行make test以运行测试,并运行make codecheck以确保您的代码遵循标准。
许可证
版权所有 © 联合丹麦汽车制造商 (FDM)。保留所有权利。
在MIT许可证下授权。