barbondev / payment-paypoint-hosted-bundle
提供访问托管PayPoint(曾是SecPay)网关的支付包
dev-develop
2014-12-11 10:30 UTC
Requires
- php: >=5.3.8
- jms/payment-core-bundle: 1.1.0
- symfony/form: ~2.2
- symfony/symfony: ~2.2
Requires (Dev)
- phpunit/phpunit: 4.3.4
- symfony/browser-kit: ~2.2
This package is not auto-updated.
Last update: 2024-09-24 03:49:18 UTC
README
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