PHP code example of kallencode / laravel-icepay

1. Go to this page and download the library: Download kallencode/laravel-icepay library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

kallencode / laravel-icepay example snippets


return [
    'api_key' => env('ICEPAY_API_KEY', 'xxxxx'),
    'api_secret' => env('ICEPAY_API_SECRET', 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'),

    'completed_url' => env('ICEPAY_COMPLETED_URL', 'http://example.local/payment.php'),
    'error_url' => env('ICEPAY_ERROR_URL', 'http://example.local/payment.php'),
];

$checkoutResponse = Icepay::checkout([
    'Amount'        => 1000,
    'Currency'      => 'EUR',
    'Paymentmethod' => 'IDEAL',
    'Issuer'        => 'ABNAMRO',
    'Country'       => 'NL',
    'Language'      => 'NL',
    'Description'   => 'This is a example description',
    'OrderID'       => '1',
    'Reference'     => '1'
])


$paymentID = 123123;
$paymentResponse = Icepay::getPayment($paymentID);

bash
php artisan vendor:publish --provider="Kallencode\Icepay\IcepayServiceProvider" --tag="config"