PHPackages                             fruitcake/omnipay-magnius - 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. fruitcake/omnipay-magnius

ActiveLibrary[Payment Processing](/categories/payments)

fruitcake/omnipay-magnius
=========================

Magnius Gateway

v0.1.2(7y ago)12711MITPHP

Since Mar 28Pushed 7y ago2 watchersCompare

[ Source](https://github.com/fruitcake/omnipay-magnius)[ Packagist](https://packagist.org/packages/fruitcake/omnipay-magnius)[ Docs](https://github.com/fruitcake/omnipay-magnius)[ RSS](/packages/fruitcake-omnipay-magnius/feed)WikiDiscussions master Synced yesterday

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

Omnipay: Magnius
================

[](#omnipay-magnius)

**Magnius gateway for the Omnipay PHP payment processing library**

[![Latest Version on Packagist](https://camo.githubusercontent.com/30e10c903a352d7c2fe2e25b712c99fb68b99865200c1ac8f4ed6e101bf684ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f667275697463616b652f6f6d6e697061792d6d61676e6975732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fruitcake/omnipay-magnius)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/71d2c8d4a0517eda938de9a9e5fdc7a1afff2e122bdad0081c8477db05f694f2/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f667275697463616b652f6f6d6e697061792d6d61676e6975732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/fruitcake/omnipay-magnius)[![Coverage Status](https://camo.githubusercontent.com/4103253aeee16a60cb16719dc02a574ebf08f2caa5eb9b3aa6f085df18b6ab5a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f667275697463616b652f6f6d6e697061792d6d61676e6975732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fruitcake/omnipay-magnius/code-structure)[![Quality Score](https://camo.githubusercontent.com/afca7203b163281eb4fa2e947a0341b58dcf1deb9b51600133a3d4b76dcfe09f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f667275697463616b652f6f6d6e697061792d6d61676e6975732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/fruitcake/omnipay-magnius)[![Total Downloads](https://camo.githubusercontent.com/d8c5c2669123faec65044b3e28b691e20bb31bfa27b3ef24b231cabe24b5b88e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f667275697463616b652f6f6d6e697061792d6d61676e6975732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fruitcake/omnipay-magnius)

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 7.1+. This package implements Magnius support for Omnipay.

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Install
-------

[](#install)

Via Composer

```
$ composer require league/omnipay fruitcake/omnipay-magnius
```

Usage
-----

[](#usage)

The following gateways are provided by this package:

- Magnius

The following paymentMethods are implemented:

- ideal
- paypal
- sepa (requires Customer)

### Customers

[](#customers)

You can create a Customer using the `CreateCustomerRequest`. The Response contains a `customerReference` you can use in your requests.

```
$response = $gateway->createCustomer([
   'card' => [
       'email' => 'barry@fruitcake.nl',
       'country' => 'NL',
       'city' => 'Eindhoven',
       'address1' => 'My Street',
       'phone' => '123',
       'company' => 'Fruitcake',
   ]

])->send();

$customerId = $response->getCustomerId();
```

Example
-------

[](#example)

```
 $gateway = \Omnipay\Omnipay::create('Magnius');
    $gateway->initialize(array(
        'accountId' => '',
        'apiKey' => '',
        'testMode' => true,
        'organisationId' => null,
    ));

    // Start the purchase
    if(!isset($_GET['transaction_id'])){
        $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        $response = $gateway->purchase(array(
            'amount' => "6.84",
            'description' => "Testorder #1234",
            'issuer' => 'ABNANL2A',                  // Get the id from the issuers list
            'paymentMethod' => 'ideal',             // For 'ideal', the Issuer is required
            'transactionId' => 1234,
            'customerId' => $customerId,            // If you have a customerId
            'returnUrl' => $url,
            'notifyUrl' => $url,
        ))->send();

        if ($response->isRedirect()) {
            // redirect to offsite payment gateway
            $response->redirect();
        } elseif ($response->isPending()) {
            // Process started (for example, 'overboeking')
            return "Pending, Reference: ". $response->getTransactionReference();
        } else {
            // payment failed: display message to customer
            return "Error " .$response->getCode() . ': ' . $response->getMessage() .
            ' Details: '. print_r($response->getDetails(), true);
        }
    }else{
        // Check the status
        $response = $gateway->completePurchase()->send();
        if($response->isSuccessful()){
            $reference = $response->getTransactionReference();  // TODO; Check the reference/id with your database
            return "Transaction '" . $response->getTransactionId() . "' succeeded!";
        }else{
            return "Error " .$response->getCode() . ': ' . $response->getMessage();
        }
    }
```

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release announcements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/fruitcake/omnipay-magnius/issues), or better yet, fork the library and submit a pull request.

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Barry vd. Heuvel](https://github.com/barryvdh)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.2% 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 ~74 days

Total

3

Last Release

2819d ago

### Community

Maintainers

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

---

Top Contributors

[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (15 commits)")[![MathieuMaas](https://avatars.githubusercontent.com/u/34303750?v=4)](https://github.com/MathieuMaas "MathieuMaas (2 commits)")

---

Tags

omnipaymagnius

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fruitcake-omnipay-magnius/health.svg)

```
[![Health](https://phpackages.com/badges/fruitcake-omnipay-magnius/health.svg)](https://phpackages.com/packages/fruitcake-omnipay-magnius)
```

###  Alternatives

[league/omnipay

Omnipay payment processing library

6.1k9.7M166](/packages/league-omnipay)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38106.0k15](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

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