softify / payum-przelewy24-bundle
基于 Payum 的 Przelewy24 支付模块,用于 Symfony 应用
v1.0.6
2023-06-06 16:08 UTC
Requires
- payum/payum-bundle: ^2.0
- php-http/guzzle6-adapter: ^2.0
- sensio/framework-extra-bundle: ^5.1
- symfony/expression-language: ^5.1|^6.0
- symfony/uid: ^5.1|^6.0
README
Payum Przelewy24 模块
为 Przelewy24 在线支付提供的 Payum 模块。
概述
该模块将 Przelewy24 支付集成到基于 Symfony 的应用程序中。安装后,您应该能够为 przelewy24 网关创建支付方式,并在您的网络应用程序中启用其支付功能。模块还支持在线退款和市集。
安装
-
运行
composer require softify/payum-przelewy24-bundle
。 -
将模块依赖项添加到您的 config/bundles.php 文件中
return [ Softify\PayumPrzelewy24Bundle\PayumPrzelewy24Bundle::class => ['all' => true], ]
- 将 PayumBundle 路由添加到主要配置中
payum_all: resource: "@PayumBundle/Resources/config/routing/all.xml"
配置
根据模块中的模型创建实体
namespace App\Entity; use Softify\PayumPrzelewy24Bundle\Entity\Payment as BasePayment; class Payment extends BasePayment { }
namespace App\Entity; use Softify\PayumPrzelewy24Bundle\Entity\PaymentToken as BasePaymentToken; class PaymentToken extends BasePaymentToken { }
添加 payum przelewy24 网关配置
payum: storages: App\Entity\Payment: { doctrine: orm } security: token_storage: App\Entity\PaymentToken: { doctrine: orm } gateways: przelewy24: factory: 'przelewy24' sandbox: boolean clientId: string clientSecret: string apiKey: string marketplace: boolean marketplaceApiKey: string marketplaceClientId: string marketplaceApiUri: string actions: invalidateCaptureToken: boolean
对于市集,Przelewy24 没有沙盒。