A PHP library for working with iDEAL 2.0 payments using the Open Banking APIs
The preferred method of installation is via Composer. Run the following
command to install the package and add it as a requirement to your project's
composer.json
:
composer require petervdbroek/ideal2
This package is a minimal viable product for doing standard payments with iDEAL 2.0 using the Open Banking APIs.
There is an open TODO in the Signer class to add verification of Signature and Digest in Responses and on notifications. This will be added later.
This package currently does not support Fast Checkout or Profile recognition via Debtor Tokens.
If you need this functionality you can add this by creating a PR on this repo. See the Contribute section.
$ideal = new iDEAL('<merchantId>', '<client>', '<baseUri>', '<certificatePath>', '<privateKeyPath>');
$payment = $ideal->createPayment(<amount>, '<reference>', '<notificationUrl>', '<returnUrl>');
This will return a Payment object containing a Payment ID.
$paymentStatus = $ideal->getPaymentStatus(<paymentId>);
This will return a PaymentStatus object containing the status.
If you need more functionality you can create a PR on this repo.
You can extend the Resources by adding new getters, and extend or add Endpoints to add more functionality like Fast Checkout or Profile recognition via Debtor Tokens.
The petervdbroek/ideal2 library is copyright © Peter van den Broek and licensed for use under the MIT License (MIT). Please see LICENSE for more information.