barbondev/payment-paypoint-hosted-bundle

提供访问托管PayPoint(曾是SecPay)网关的支付包

安装: 63

依赖: 0

建议者: 0

安全性: 0

星标: 0

关注者: 2

分支: 0

开放问题: 0

类型:symfony-bundle

dev-develop 2014-12-11 10:30 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:49:18 UTC


README

Build Status

PayPoint托管网关

为使用Symfony框架的PayPoint托管支付网关插件实现。

安装

这是一个composer包,因此需要在composer.json中将其作为依赖项包含

"require": {
    ...
    "barbondev/payment-paypoint-hosted-bundle": "dev-master"
},

更新composer供应商和自动加载器

$ php composer.phar update

通过添加包更新Symfony内核app/AppKernel.php

// in AppKernel::registerBundles()
$bundles = array(
    // ...
    new JMS\Payment\CoreBundle\JMSPaymentCoreBundle(),
    new Barbondev\Payment\PayPointHostedBundle\BarbondevPaymentPayPointHostedBundle(),
    // ...
);

app/config/routing.yml中安装路由配置

barbondev_payment_paypoint_hosted:
    resource: "@BarbondevPaymentPayPointHostedBundle/Resources/config/routing.xml"
    prefix:   /

配置

app/config/config.yml中配置以下参数

barbon_payment_paypoint_hosted:
    merchant: ABC123
    gateway_url: https://www.secpay.com/java-bin/ValCard
    remote_password: f00b4r
    test_status: 'true'
    repeat: 'true'
    test_mpi_status: 'true'
    usage_type: E
    dups: 'true'
    template: https://www.example.com/path/to/my-template.html

app/config/config_prod.yml中,默认参数可能被生产变体覆盖

barbon_payment_paypoint_hosted:
    merchant: ABC123
    gateway_url: https://www.secpay.com/java-bin/ValCard
    remote_password: sup3rs3cr3tp455
    test_status: 'live'
    repeat: 'true'
    test_mpi_status: 'live'
    usage_type: E
    dups: 'true'
    template: https://www.example.com/path/to/my-template.html