digital-link/saferpay-bundle

Saferpay支付服务库,用于symfony框架

安装: 80

依赖者: 0

建议者: 0

安全: 0

星级: 0

关注者: 5

分支: 6

类型:symfony-bundle

2.0.7 2015-01-06 07:19 UTC

This package is not auto-updated.

Last update: 2024-09-28 16:56:57 UTC


README

作为symfony扩展包的saferpay支付服务的一个简单非官方实现。

Build Status Total Downloads Latest Stable Version Latest Unstable Version

安装

composer.json

{
    "require": {
        "payment/saferpay-bundle": "2.*"
    }
}

app/AppKernel.php

new Payment\Bundle\SaferpayBundle\PaymentSaferpayBundle(),

app/config/config.yml (完整的配置输出 - 无需设置,默认值已设置)

payment_saferpay:
    logger:
        serviceid:            logger
    httpclient:
        serviceid:            payment.saferpay.httpclient.buzz
    payinitparameter:
        serviceid:            payment.saferpay.payinitparameter.default
        data:
            accountid:            ~ # insert here your accountid (test-account: 99867-94913159)
            amount:               ~
            currency:             ~
            description:          ~
            orderid:              ~
            vtconfig:             ~
            successlink:          ~
            faillink:             ~
            backlink:             ~
            notifyurl:            ~
            autoclose:            ~
            ccname:               ~
            notifyaddress:        ~
            usernotify:           ~
            langid:               ~
            showlanguages:        ~
            paymentmethods:       ~
            duration:             ~
            cardrefid:            ~
            delivery:             ~
            appearance:           ~
            address:              ~
            company:              ~
            gender:               ~
            firstname:            ~
            lastname:             ~
            street:               ~
            zip:                  ~
            city:                 ~
            country:              ~
            email:                ~
            phone:                ~

使用

控制器

查看测试SaferpayController