PHPackages                             whitecube/multisafepay-php - 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. whitecube/multisafepay-php

ActiveLibrary[Payment Processing](/categories/payments)

whitecube/multisafepay-php
==========================

An unofficial wrapper for the MultiSafepay API.

v0.1.0(6y ago)160PHPPHP &gt;=7.1.0

Since Sep 9Pushed 6y ago2 watchersCompare

[ Source](https://github.com/whitecube/multisafepay-php)[ Packagist](https://packagist.org/packages/whitecube/multisafepay-php)[ RSS](/packages/whitecube-multisafepay-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

multisafepay-php
================

[](#multisafepay-php)

A wrapper for the MultiSafePay API.

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

[](#installation)

```
composer require whitecube/multisafepay-php

```

Usage
-----

[](#usage)

You must specify two things before beginning to use the API:

- The application environment (accepted values are `production` or `test`)
- Your MultiSafepay API key

```
$client = new Whitecube\MultiSafepay\Client('production', 'your-api-key');

// Example: Get an existing order
$order = $client->orders()->fetch('order-id');
```

### Orders

[](#orders)

The Orders API lives under the `orders` method on the client.

```
$client->orders()->...
```

#### Creating orders

[](#creating-orders)

[See official docs.](https://docs.multisafepay.com/api/#create-an-order)
Orders are represented by PHP Objects but can be submitted as regular associative arrays.

```
use Whitecube\MultiSafepay\Entities\Order;

$order = new Order('my-order-id')
             ->type('redirect')
             ->amount(20)
             ->currency('EUR')
             ->description('2 movie tickets')
             ->paymentOptions([
                 'notification_url' => 'http://www.example.com/client/notification?type=notification',
                 'redirect_url' => 'http://www.example.com/client/notification?type=redirect',
                 'cancel_url' => 'http://www.example.com/client/notification?type=cancel',
                 'close_window' => ''
             ]);

$client->orders()->create($order);

// Or as an associative array

$client->orders()->create([
    'order_id' => 'my-order-id',
    'type' => 'redirect',
    'amount' => 20,
    'currency' => 'EUR',
    'description' => '2 movie tickets',
    'payment_options' => [
        'notification_url' => 'http://www.example.com/client/notification?type=notification',
        'redirect_url' => 'http://www.example.com/client/notification?type=redirect',
        'cancel_url' => 'http://www.example.com/client/notification?type=cancel',
        'close_window' => ''
    ]
]);
```

#### Getting orders

[](#getting-orders)

[See official docs.](https://docs.multisafepay.com/api/#retrieve-an-order)Fetch an existing order's information

```
$client->orders()->fetch('order-id');
```

#### Updating orders

[](#updating-orders)

[See official docs.](https://docs.multisafepay.com/api/#update-an-order)

```
$client->orders()->update('order-id', [
    'status' => 'completed',
    //...
]);
```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2440d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3407beeeebf0b678b18ab8c75f9ec0a8577adde673f720a6a58837074760528?d=identicon)[Whitecube](/maintainers/Whitecube)

---

Top Contributors

[![voidgraphics](https://avatars.githubusercontent.com/u/9298484?v=4)](https://github.com/voidgraphics "voidgraphics (4 commits)")

### Embed Badge

![Health badge](/badges/whitecube-multisafepay-php/health.svg)

```
[![Health](https://phpackages.com/badges/whitecube-multisafepay-php/health.svg)](https://phpackages.com/packages/whitecube-multisafepay-php)
```

###  Alternatives

[chargebee/chargebee-php

ChargeBee API client implementation for PHP

768.0M9](/packages/chargebee-chargebee-php)[imdhemy/google-play-billing

Google Play Billing

491.3M5](/packages/imdhemy-google-play-billing)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[buckaroo/sdk

Buckaroo payment SDK

12189.1k9](/packages/buckaroo-sdk)[contica/facturador-electronico-cr

Un facturador de código libre para integrar facturación electrónica en Costa Rica a un proyecto PHP

2128.8k](/packages/contica-facturador-electronico-cr)[karson/mpesa-php-sdk

172.2k](/packages/karson-mpesa-php-sdk)

PHPackages © 2026

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