asanzred / ideal
iDeal PSP provider wrapper for Laravel 5
This package's canonical repository appears to be gone and the package has been frozen as a result.
v1.0.0
2020-08-10 14:40 UTC
Requires
- php: ~5.6|~7.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: ~4.0||~5.0
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2022-06-16 22:48:29 UTC
README
Install
Via Composer
$ composer require smallworldfs/ideal
Add ServiceProvider in your app.php
config file.
// config/app.php 'providers' => [ ... Smallworldfs\Ideal\IdealServiceProvider::class, ]
Configuration
Publish the config by running:
php artisan config:publish smallworldfs/ideal
Usage
You can find an IdealController.php and routes.php with basic routes and calls
use Smallworldfs\Ideal\Libraries\Bs\IDeal\IDeal; $ideal = new IDeal(Config::get('ideal.provider_url')); // The full path to the acquirer certificate. This certificate is provided by your iDeal provider and // must be downloaded from the merchant environment. Testing and production have different certificates. $ideal->setAcquirerCertificate(Config::get('ideal.acquirer_cert'), true); // Your merchant ID as specified in the merchant environment. // Testing and production each have a different merchant ID. $ideal->setMerchant(Config::get('ideal.merchant_id')); // The full path to your merchant certificate. $ideal->setMerchantCertificate(Config::get('ideal.merchant_cert'), true); // The full path to your private key. $ideal->setMerchantPrivateKey(Config::get('ideal.merchant_priv_key'), Config::get('ideal.merchant_priv_key_passwd'), true); // Start a transaction request, amount in cents. $transactionRequest = $ideal->createTransactionRequest(Config::get('ideal.merchant_issuer'), Config::get('ideal.merchant_return_url'), 'purchaseId', 1999, 'Description'); $transactionResponse = $transactionRequest->send();
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please email smallworldfs@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.