Package Data | |
---|---|
Maintainer Username: | phamels |
Maintainer Contact: | pieter@hamels.be (Phamels) |
Package Create Date: | 2015-12-02 |
Package Last Update: | 2015-12-02 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-30 15:10:05 |
Package Statistics | |
---|---|
Total Downloads: | 17 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 0 |
Updated the code from the Laravel Icepay package to be able to use it with Laravel 5.1
Install the phamels/laravel-icepay
package
$ 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.php
file
'icepay' => [
'MERCHANTID' => xxxxx,
'SECRETCODE' => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
'log' => true
],
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());
Contributions are welcome.