PHPackages                             slm/ideal-payment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Payment Processing](/categories/payments)
4. /
5. slm/ideal-payment

ActiveLibrary[Payment Processing](/categories/payments)

slm/ideal-payment
=================

Payment module for the Dutch iDEAL payment system

v1.0.0-beta4(12y ago)99.9k5[6 issues](https://github.com/juriansluiman/SlmIdealPayment/issues)BSD-3-ClausePHPPHP &gt;=5.3.3

Since Aug 11Pushed 11y ago3 watchersCompare

[ Source](https://github.com/juriansluiman/SlmIdealPayment)[ Packagist](https://packagist.org/packages/slm/ideal-payment)[ Docs](https://github.com/juriansluiman/SlmIdealPayment)[ RSS](/packages/slm-ideal-payment/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

SlmIdealPayment
===============

[](#slmidealpayment)

[![Build Status](https://camo.githubusercontent.com/e552b093d8aba45c8f474342081e869927b2e007feca3bb461f1f41c8fb99598/68747470733a2f2f7472617669732d63692e6f72672f6a757269616e736c75696d616e2f536c6d496465616c5061796d656e742e706e67)](https://travis-ci.org/juriansluiman/SlmIdealPayment)[![Latest Stable Version](https://camo.githubusercontent.com/1065384fed07bcc9f6ece3791d527a741934e473ff1636cd99167cef8375ea76/68747470733a2f2f706f7365722e707567782e6f72672f736c6d2f696465616c2d7061796d656e742f762f737461626c652e706e67)](https://packagist.org/packages/slm/ideal-payment)

Created by Jurian Sluiman

Introduction
------------

[](#introduction)

SlmIdealPayment is a Zend Framework 2 module to provide payments via the iDEAL system. iDEAL is a payment service for the Dutch market and allows integration of payments for almost all Dutch banks.

The module provides integration for the so-called iDEAL professional / iDEAL advanced method. Integration via iDEAL basic / iDEAL lite is not included.

> **Standalone usage:**This module is developed for Zend Framework 2, but can be used without the framework in your own application. There is no need to understand Zend Framework 2 to use this module.

### Supported acquirers

[](#supported-acquirers)

SlmIdealPayment works with the following banks (or acquirers in iDEAL terms):

1. Rabobank
2. ING Bank
3. ABN Amro

Installation
------------

[](#installation)

The module can be loaded via composer. Require `slm/ideal-payment` in your composer.json file. If you do not have a composer.json file in the root of your project, copy the contents below and put that into a file called composer.json and save it in the root of your project:

```
{
    "require": {
        "slm/ideal-payment": "@beta"
    }
}

```

Then execute the following commands in a CLI:

```
curl -s http://getcomposer.org/installer | php
php composer.phar install

```

Now you should have a vendor directory, including a slm/ideal-payment. In your bootstrap code, make sure you include the vendor/autoload.php file to properly load the SlmIdealPayment module.

Configuration
-------------

[](#configuration)

The file `slmidealpayment.local.php.dist` eases the iDEAL configuration. Copy the file from `vendor/slm/ideal-payment/config/slmidealpayment.local.php.dist`to your autoload folder and remove the `.dist` extension.

Open the file and update the values to your needs. If you do not have a SSL certificate, you can use a self-signed certificate and upload that one to the iDEAL dashboard of your acquirer. Generate a key with 2048 bits encryption with the following command:

```
openssl genrsa –aes128 –out priv.pem –passout pass:[privateKeyPass] 2048

```

Then create a certificate valid for 5 years:

```
openssl req –x509 –sha256 –new –key priv.pem –passin pass:[privateKeyPass]
-days 1825 –out cert.cer

```

Then use the `priv.pem` and `cert.cer` files for the iDEAL signatures.

Usage
-----

[](#usage)

SlmIdealPayments will setup the client with the correct properties. Use the following names to request an instance from the service manager:

1. Rabobank: `SlmIdealPayment\Client\Standard\Rabobank`
2. ING Bank: `SlmIdealPayment\Client\Standard\Ing`
3. ABN Amro: `SlmIdealPayment\Client\Standard\AbnAmro`

### Directory request

[](#directory-request)

Then use the client to perform the request. A directory request gives a list of supported issuers. The result is a `SlmIdealPayment\Response\DirectoryResponse`:

```
$client = $sl->get('SlmIdealPayment\Client\Standard\Rabobank');

$request  = new DirectoryRequest;
$response = $client->send($request);

foreach ($response->getCountries() as $country) {
    echo sprintf("Country: %s\n", $country->getName());

    foreach ($country->getIssuers() as $issuer) {
        echo sprintf("%s: %s\n", $issuer->getId(), $issuer->getName());
    }
}
```

### Transaction request

[](#transaction-request)

A transaction request needs a Transaction object. The result is a `SlmIdealPayment\Response\TransactionResponse` object:

```
use SlmIdealPayment\Model;

$client = $sl->get('SlmIdealPayment\Client\Standard\Rabobank');

// Set up the issuer
$issuer = new Model\Issuer;
$issuer->setId($issuerId); // set selected issuer here

// Set up the transaction
$transaction = new Model\Transaction;
$transaction->setPurchaseId($purchaseId);
$transaction->setAmount($amount);
$transaction->setDescription($description);
$transaction->setEntranceCode($ec);

$request  = new TransactionRequest;
$request->setIssuer($issuer);
$request->setTransaction($transaction);

$response = $client->send($request);

echo $response->getTransaction()->getTransactionId();

// Then perform redirect:
// Redirect to $response->getAuthenticationUrl();
```

### Status request

[](#status-request)

A status request also needs a transaction object, but then for its transaction id. The result is a `SlmIdealPayment\Response\StatusRequest`:

```
use SlmIdealPayment\Model;

$client = $sl->get('SlmIdealPayment\Client\Standard\Rabobank');

$transaction = new Model\Transaction;
$transaction->setTransactionId($transactionId);

$request  = new StatusRequest;
$request->setTransaction($transaction);

$response = $client->send($request);

echo $response->getTransaction()->getStatus();
```

Using SlmIdealPayment outside ZF2
=================================

[](#using-slmidealpayment-outside-zf2)

You can use the client without Zend Framework 2. Only the HTTP client is used inside the client and it's a small dependency you can load in any project you have. However, you need to configure all variables yourself.

```
use SlmIdealPayment\Client\StandardClient;
use SlmIdealPayment\Options\StandardClientOptions;

$options = new StandardClientOptions;
$options->setRequestUrl('https://ideal.rabobank.nl/ideal/iDEALv3');
$options->setMerchantId('00X0XXXXX');
$options->setSubId('0');

$options->setPublicCertificate('data/ssl/rabobank.cer');
$options->setPrivateCertificate('data/ssl/cert.cer');

$options->setKeyFile('data/ssl/priv.pem');
$options->setKeyPassword('h4x0r');

$client = new StandardClient($options);
```

Now `$client` is configured, use above methods to perform the various requests.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

4

Last Release

4622d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c8ca0c8435ae4c01c201bb52f63a72a8f9ef203f61535d7daf588f6b3a7df1c?d=identicon)[juriansluiman](/maintainers/juriansluiman)

---

Top Contributors

[![intellix](https://avatars.githubusercontent.com/u/1162531?v=4)](https://github.com/intellix "intellix (1 commits)")[![marijn](https://avatars.githubusercontent.com/u/65233?v=4)](https://github.com/marijn "marijn (1 commits)")

---

Tags

paymentideal

### Embed Badge

![Health badge](/badges/slm-ideal-payment/health.svg)

```
[![Health](https://phpackages.com/badges/slm-ideal-payment/health.svg)](https://phpackages.com/packages/slm-ideal-payment)
```

###  Alternatives

[enupal/stripe

Allows customers sign up for recurring and one-time payments with Stripe, perfect for orders, donations, subscriptions, and events. Create simple payment forms in seconds easily without coding. For Craft CMS 3.x

3416.5k1](/packages/enupal-stripe)[omnipay/rabobank

Rabobank Omnikassa driver for the Omnipay payment processing library

1463.4k](/packages/omnipay-rabobank)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
