waaz/axepta-plugin

Sylius 的 Axepta 支付插件

安装次数: 2,408

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 1

公开问题: 1

类型:sylius-plugin

This package is not auto-updated.

Last update: 2024-09-17 20:02:31 UTC


README

此插件符合 3DSV2 协议。
安装此包后,您需要配置以下路由以接受 POST 请求

sylius_shop_order_thank_you:
    path: /{_locale}/order/thank-you
    methods: [GET, POST]
    defaults:
        _controller: sylius.controller.order:thankYouAction
        _sylius:
            template: "@SyliusShop/Order/thankYou.html.twig"

sylius_shop_order_show:
    path: /{_locale}/order/{tokenValue}
    methods: [GET, PUT, POST]
    defaults:
        _controller: sylius.controller.order:updateAction
        _sylius:
            template: "@SyliusShop/Order/show.html.twig"
            repository:
                method: findOneBy
                arguments: [tokenValue: $tokenValue]
            form:
                type: Sylius\Bundle\CoreBundle\Form\Type\Checkout\SelectPaymentType
                options:
                    validation_groups: []
            redirect:
                route: sylius_shop_order_pay
                parameters:
                    tokenValue: resource.tokenValue
            flash: false