softify/payum-przelewy24-bundle

基于 Payum 的 Przelewy24 支付模块,用于 Symfony 应用

安装: 171

依赖项: 0

建议者: 0

安全性: 0

星星: 2

关注者: 2

分支: 2

开放问题: 0

类型:symfony-bundle

v1.0.6 2023-06-06 16:08 UTC

This package is auto-updated.

Last update: 2024-09-06 19:20:50 UTC


README

Payum Przelewy24 模块

为 Przelewy24 在线支付提供的 Payum 模块。

概述

该模块将 Przelewy24 支付集成到基于 Symfony 的应用程序中。安装后,您应该能够为 przelewy24 网关创建支付方式,并在您的网络应用程序中启用其支付功能。模块还支持在线退款和市集。

安装

  1. 运行 composer require softify/payum-przelewy24-bundle

  2. 将模块依赖项添加到您的 config/bundles.php 文件中

   return [
       Softify\PayumPrzelewy24Bundle\PayumPrzelewy24Bundle::class => ['all' => true],
   ]
  1. 将 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 没有沙盒。