2017 © Pedro Peláez
 

library laravel-icepay

Laravel integration of the icepay api

image

phamels/laravel-icepay

Laravel integration of the icepay api

  • Wednesday, December 2, 2015
  • by phamels
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Icepay for Laravel 5.1

Updated the code from the Laravel Icepay package to be able to use it with Laravel 5.1, (*1)

Requirements

  • PHP >=5.5
  • Laravel >= 5.1

## Getting started

Laravel >= 5.1

  1. Install the phamels/laravel-icepay package, (*2)

    $ composer require phamels/laravel-icepay:dev-master
    
  2. Update app/config/app.php` to activate the package, (*3)

    # 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,
    )
    
  3. Define the config parameters in your config/services.php file, (*4)

        'icepay' => [
            'MERCHANTID'    => xxxxx,
            'SECRETCODE'    => "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
            'log'           => true
        ],
    

Usage

Below is a simple usage example of this package, (*5)

Generate a payment link for €10,00:, (*6)

$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., (*7)

Todo's

  • Write tests

The Versions

02/12 2015

dev-master

9999999-dev

Laravel integration of the icepay api

  Sources   Download

The Requires

 

by Avatar phamels

10/09 2015

v0.1

0.1.0.0

Laravel integration of the icepay api

  Sources   Download

The Requires

 

by Avatar hansvn