ruudk / mollie-bundle
此包已被弃用且不再维护。未建议替代包。
Symfony2包,用于与Mollie交互
0.1.6
2013-07-08 17:01 UTC
Requires
- php: >=5.3.2
- amnl/mollie: 1.0.*
- symfony/framework-bundle: >=2.1,<3.0
README
Symfony2包,用于与旧的iDEAL Mollie API交互。
此包使用了由Arno Moonen创建的AMNL\Mollie。
已弃用!
如果你今天开始一个新项目,不要使用此包,而是使用由JMSPaymentCorebundle和Omnipay/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的完整使用说明,请参阅文档。