paymentsuite/dineromail-bundle

此包已被废弃,不再维护。未建议替代包。

Dineromail PaymentSuite 组件

安装: 208

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 4

分支: 2

类型:symfony-bundle

v1.5.3 2015-04-23 09:07 UTC

This package is auto-updated.

Last update: 2022-02-01 12:32:17 UTC


README

Payment Suite Payment Suite Scrutinizer Quality Score

目录

  1. 安装支付环境
  2. 安装 DineroMail
  3. 贡献
  4. 配置
  5. 额外数据
  6. 路由器

配置

在您的 config.yml 中配置 DineroMail 配置

dineromail:

    # some specific payment config
    merchant: XXXXXXXXXX
    ipn_key: XXXXXXXXXX
    country: 1 # 1 => Argentina, 3 => Chile
    seller_name: MyProject
    header_image: http://my.image/path.jpg
    url_redirect_enabled: true

    # payment methods
    payment_methods_available:
        - cl_visa
        - cl_magna
        - cl_presto

    # By default, controller route is /payment/dineromail/execute
    controller_route: /my/custom/route

    # Controller process route, by default /payment/dineromail/process/{id_order}
    controller_process_route: /my/process/route/{id_order}

    # Configuration for payment success redirection
    #
    # Route defines which route will redirect if payment successes
    # If order_append is true, Bundle will append card identifier into route
    #    taking order_append_field value as parameter name and
    #    PaymentOrderWrapper->getOrderId() value
    payment_success:
        route: card_thanks
        order_append: true
        order_append_field: order_id

    # Configuration for payment fail redirection
    #
    # Route defines which route will redirect if payment fails
    # If card_append is true, Bundle will append card identifier into route
    #    taking card_append_field value as parameter name and
    #    PaymentCardWrapper->getCardId() value
    payment_fail:
        route: card_view
        card_append: false
        card_append_field: card_id

额外数据

PaymentBridge 服务必须至少返回这些字段。

  • customer_firstname
  • customer_lastname
  • customer_email
  • customer_phone
  • language

路由器

DineroMail 允许开发者指定处理 dineromail 付款的控制器路由。同时,通过配置规范配置 POST 回调路由。
必须由框架解析此包的路由,因此这些行必须包含在 routing.yml 文件中

dineromail_payment_routes:
    resource: .
    type: dineromail

DineroMail 付款按钮必须指向无任何参数的 dineromail_execute 路由

Bitdeli Badge