PHP code example of pieterf / laravel-ing-ideal-advanced

1. Go to this page and download the library: Download pieterf/laravel-ing-ideal-advanced 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/ */

    

pieterf / laravel-ing-ideal-advanced example snippets


IDEAL_MERCHANT_ID=XXXXXXXXX
IDEAL_ACQUIRER_URL="https://idealtest.secure-ing.com/ideal/iDEALv3"
IDEAL_PRIVATE_KEY_PASSWORD=XXXXXXXXXXXXX

$issuers = LaravelIngIdealAdvanced::getIssuers();

foreach ($issuers->getCountries() as $country) {
    foreach ($country->getIssuers() as $issuer) {
        $issuer->getName();
    }
}

$transaction = LaravelIngIdealAdvanced::startTransaction(
    $issuerId,
    new Transaction(1.22, $description, $entranceCode, 60, $purchaseID),
    route('call-back')
);

$transaction->getTransactionID()

$transaction = LaravelIngIdealAdvanced::getTransaction($transactionID);

$transaction->getStatus()
$transaction->getConsumerIBAN()
bash
php artisan vendor:publish --tag="laravel-ing-ideal-advanced-config"