pieterf/laravel-ing-ideal-advanced

ING iDeal advanced API client wrapper for Laravel

v2.0.0 2024-06-24 09:08 UTC

This package is auto-updated.

Last update: 2024-10-24 09:57:32 UTC


README

Latest Version on Packagist

Installation

You can install the package via composer:

composer require pieterf/laravel-ing-ideal-advanced

You can publish the config file with:

php artisan vendor:publish --tag="laravel-ing-ideal-advanced-config"

Configuration

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

Usage

Issuers

$issuers = LaravelIngIdealAdvanced::getIssuers();

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

Start Transaction

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

$transaction->getTransactionID()

Get Transaction

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

$transaction->getStatus()
$transaction->getConsumerIBAN()

Credits

License

The MIT License (MIT). Please see License File for more information.