PHPackages                             digiwallet/transaction-sdk - 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. digiwallet/transaction-sdk

ActiveLibrary[Payment Processing](/categories/payments)

digiwallet/transaction-sdk
==========================

DigiWallet Bank Payments PHP SDK

1.0.1(7y ago)24441GPL-2.0+PHPPHP &gt;=5.3.0

Since Feb 11Pushed 2y ago3 watchersCompare

[ Source](https://github.com/DigiWallet/transaction-sdk)[ Packagist](https://packagist.org/packages/digiwallet/transaction-sdk)[ RSS](/packages/digiwallet-transaction-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

DigiWallet SDK
==============

[](#digiwallet-sdk)

With this (namespaced) SDK you can easily make the calls to DigiWallet for all the payment methods that are provided.

Required: PHP 5.4+

Installation
============

[](#installation)

- Copy the files in /lib to your webserver.

Usage
=====

[](#usage)

First register the autoloader. If your framework already has an autoloader you might not need to use this. Use the proper route to the autoload file

```
require_once __DIR__.'/../lib/DigiWallet/autoload.php';
```

Include the DigiWallet namespace:

```
use \DigiWallet as DigiWallet;
```

Now start the payment by calling:

```
$startPaymentResult = DigiWallet\Transaction::model("Ideal")
    ->outletId(143835)
    ->amount(1000)
    ->description('Test payment')
    ->returnUrl('http://www.test.nl/success')
    ->cancelUrl('http://www.test.nl/canceled')
    ->reportUrl('http://www.test.nl/report')
    ->bank('INGBNL2A')
    ->start();
```

You can check the result. `$startPaymentResult->status` will be true in case of success. If not `startPaymentResult->status` will have the error message.

If all is OK, redirect to the bank:

```
Header ("Location: ".$startPaymentResult->url);
```

After payment the reportUrl will be called by DigiWallet, passing amongst others the transaction ID . See the DigiWallet documentation for more information.

The script behind this report URL has to check the validity of the report, thus checking the actual payment.

This is done by calling (after including the autoloader and use statement):

```
		$checkPaymentResult = DigiWallet\Transaction::model($method)
		 	->outletId(143835)
		 	->transactionId($startPaymentResult->transactionId)
		 	->check();
```

Check the results in `$checkPaymentResult` for more information about the payment. Most important: `$checkPaymentResult = true` indicates a succesful payment. Save the result of the payment in your database.

When the customer paid, he will be redirected to the Return URL. If not, he is redirected to the Cancel URL.

Test-mode
=========

[](#test-mode)

When logged in to our Organization Dashboard in DigiWallet, you have the option to enable Test-mode for any of our outlets. If you do this, every transaction started on that outlet will immediately run in test mode, meaning no actual money will be transferred.

Instead of the payment method's specific banking environment, a link to the DigiWallet Transaction Test Panel is returned. On this panel you can very easily manipulate the status of the transaction, to simulate a successful customer return or server-to-server callback, or to simulate cancellations or errors.

Payment methods
===============

[](#payment-methods)

Currently the following payment methods are implemented. See their classes (in parentheses) under /lib/DigiWallet/Methods for their specifics like minimum/maximum amounts and specific properties:

- iDEAL (Ideal)
- Bancontact/Mister Cash (Bancontact)
- Sofort Banking (Sofort)
- Paysafecard (PaysafeCard)
- PayPal (Paypal)
- Visa/Mastercard/AMEX (Creditcard)
- AfterPay (Afterpay)

Notes
=====

[](#notes)

- Do not forget to enter your own outletId. 143835 is just a demo-outlet that is always running in Test-mode.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

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 ~0 days

Total

2

Last Release

2644d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12224277?v=4)[TargetMedia](/maintainers/TargetMedia)[@targetmedia](https://github.com/targetmedia)

---

Top Contributors

[![gjdevrij](https://avatars.githubusercontent.com/u/91896912?v=4)](https://github.com/gjdevrij "gjdevrij (1 commits)")[![Sylvannes](https://avatars.githubusercontent.com/u/9823264?v=4)](https://github.com/Sylvannes "Sylvannes (1 commits)")

---

Tags

paymentspaypalidealpaysafecardcreditcardsofortmistercashklarnabancontactafterpayvisamastercardamexpsptargetpaypaysafedigiwallet

### Embed Badge

![Health badge](/badges/digiwallet-transaction-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/digiwallet-transaction-sdk/health.svg)](https://phpackages.com/packages/digiwallet-transaction-sdk)
```

###  Alternatives

[mollie/mollie-api-php

Mollie API client library for PHP. Mollie is a European Payment Service provider and offers international payment methods such as Mastercard, VISA, American Express and PayPal, and local payment methods such as iDEAL, Bancontact, SOFORT Banking, SEPA direct debit, Belfius Direct Net, KBC Payment Button and various gift cards such as Podiumcadeaukaart and fashioncheque.

59914.4M60](/packages/mollie-mollie-api-php)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mollie/oauth2-mollie-php

Mollie Provider for OAuth 2.0 Client

251.7M1](/packages/mollie-oauth2-mollie-php)[mollie/magento

iDEAL, Creditcard, Bancontact/Mister Cash, SOFORT, Bank transfer, Bitcoin, PayPal &amp; paysafecard for Magento https://www.mollie.com/

397.9k](/packages/mollie-magento)

PHPackages © 2026

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