ruudk/mollie-bundle

此包已被弃用且不再维护。未建议替代包。

Symfony2包,用于与Mollie交互

安装: 303

依赖者: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 1

公开问题: 0

类型:symfony-bundle

0.1.6 2013-07-08 17:01 UTC

This package is auto-updated.

Last update: 2022-02-01 12:21:43 UTC


README

Symfony2包,用于与旧的iDEAL Mollie API交互。

此包使用了由Arno Moonen创建的AMNL\Mollie

已弃用!

如果你今天开始一个新项目,不要使用此包,而是使用由JMSPaymentCorebundleOmnipay/Mollie提供的RuudkPaymentMollieBundle,它支持新的Mollie API,该API支持iDEAL、信用卡、mister cash等。

安装

步骤1:使用Composer要求包

php composer.phar require ruudk/mollie-bundle

步骤2:启用包

在kernel中启用包

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...

        new Ruudk\MollieBundle\RuudkMollieBundle(),
    );
}

步骤3:配置

最后,将以下内容添加到您的config.yml中

# app/config/config_prod.yml

ruudk_mollie:
    partner_id:  # Your partner ID
    profile_key: ~  # Optional profile key
    testmode:    true
	buzz_client: # Optional Buzz client, can be file_get_contents or curl

恭喜!你已经准备好了。

使用API

$ideal = $this->container->get('mollie.ideal');
$minitix = $this->container->get('mollie.minitix');
$ivr = $this->container->get('mollie.ivr');

有关Mollie API的完整使用说明,请参阅文档