pieterf / laravel-ing-ideal-advanced
ING iDeal advanced API client wrapper for Laravel
Fund package maintenance!
pieterf
v2.0.0
2024-06-24 09:08 UTC
Requires
- php: ^8.0
- ext-dom: *
- illuminate/contracts: ^9.0|^10.0|^11.0
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- nunomaduro/collision: ^6.0
- spatie/laravel-ray: ^1.26
README
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.