phamels/laravel-icepay
Composer 安装命令:
composer require phamels/laravel-icepay
包简介
Laravel integration of the icepay api
README 文档
README
Updated the code from the Laravel Icepay package to be able to use it with Laravel 5.1
Requirements
- PHP >=5.5
- Laravel >= 5.1
Getting started
Laravel >= 5.1
-
Install the
phamels/laravel-icepaypackage$ composer require phamels/laravel-icepay:dev-master
-
Update app/config/app.php` to activate the package
# Add `Phamels\Icepay\IcepayServiceProvider` to the `providers` array 'providers' => array( ... Phamels\Icepay\IcepayServiceProvider::class, ) # Add the Icepay alias 'aliases' => array( ... 'Icepay' => Phamels\Icepay\Facades\Icepay::class, )
-
Define the config parameters in your
config/services.phpfile'icepay' => [ 'MERCHANTID' => xxxxx, 'SECRETCODE' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 'log' => true ],
Usage
Below is a simple usage example of this package
Generate a payment link for €10,00:
$icepay = \Icepay::paymentObject(); $icepay->setAmount(1000) ->setCountry("BE") ->setLanguage("NL") ->setReference("My Sample Website") ->setDescription("My Sample Payment") ->setCurrency("EUR"); $basic = Icepay::basicMode(); $basic->validatePayment($icepay); return sprintf("<a href=\"%s\">%s</a>",$basic->getURL(),$basic->getURL());
Contributing
Contributions are welcome.
Todo's
- Write tests
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-12-09