xlabs/centrobillbundle

CentroBill 包装器包

安装: 68

依赖项: 0

建议者: 0

安全: 0

类型:symfony-bundle

1.0.6 2023-12-21 12:46 UTC

This package is auto-updated.

Last update: 2024-09-21 14:29:41 UTC


README

一个 CentroBill 包装器。

安装

通过 composer 安装

php -d memory_limit=-1 composer.phar require xlabs/centrobillbundle

在你的 AppKernel 中

public function registerbundles()
{
    return [
    	...
    	...
    	new XLabs\CentroBillBundle\XLabsCentroBillBundle(),
    ];
}

路由

追加到主路由文件

# app/config/routing.yml
  
x_labs_centrobill:
    resource: .
    type: xlabs_centrobill_routing

配置示例

以下显示默认值

# app/config/config.yml

x_labs_centro_bill:
    url: 'https://www.bikinifanatics.com'
    site_name: ['bikinifanatics.com'] # CentroBill site name array
    url_prefix: /centrobill
    postback_url: /postback
    return_url: /response
    onetime_purchase_url: /oneclick
    api:
        key: XXXXXXXXX
        url: 'https://api.centrobill.com'
        ttl: 1200
    logging:
        enabled: true
        location: '%kernel.logs_dir%/'
    allowed_ips: ['xx.xx.xx.xx']
    mail_notifications:
        enabled: true
        subject: 'BikiniFanatics'
        from: 'centrobillpostback@bikinifanatics.com'
        destinataries: ["xavi.mateos@manicamedia.com"]

更新允许的 IP 地址

php bin/console xlabs:centrobill:update_ips

更新数据源

尽可能频繁地设置 cronjob,可能每 2-4 小时一次;Trial2Full 成员将依赖于此数据源。

php bin/console xlabs:centrobill:feed