PHPackages                             panda-hug-monster/mpay24 - 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. panda-hug-monster/mpay24

ActiveLibrary[Payment Processing](/categories/payments)

panda-hug-monster/mpay24
========================

mPAY24 PHP API

0721PHP

Since Jul 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/PandaHugMonster/mpay24)[ Packagist](https://packagist.org/packages/panda-hug-monster/mpay24)[ RSS](/packages/panda-hug-monster-mpay24/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

mPAY24 PHP API (PandaHugMonster fork)
=====================================

[](#mpay24-php-api-pandahugmonster-fork)

Offical PHP SDK for SOAP Bindings (It's unofficial fork!!!)
-----------------------------------------------------------

[](#offical-php-sdk-for-soap-bindings-its-unofficial-fork)

### [See the steps](https://github.com/mPAY24/mpay24_php_api/wiki/STEP-1)

[](#see-the-steps)

---

### NOTE

[](#note)

This version is a fork of an original repository. Added and Modified:

- Merged last modifications from the main repository (Be careful structure has been changed a lot)

### ABSTRACT

[](#abstract)

![Packagist](https://camo.githubusercontent.com/a4b7a1d8377c4252b62962b12857454a352b488c7f58770dcbcadcffaf57247b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e737667)

Offical PHP SDK for SOAP Bindings

Documentation
-------------

[](#documentation)

A short demo implementation guide is available at
Documentation is available at .

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require mpay24/mpay24-php
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require __DIR__ . '/vendor/autoload.php';
```

Manual Installation
-------------------

[](#manual-installation)

If you do not want to use Composer, you can download the [latest release](https://github.com/mpay24/mpay24-php/releases). Then, to use the bindings, include the `bootstrap.php` file.

```
require_once('bootstrap.php');
```

SDK overview
------------

[](#sdk-overview)

#### Configuration

[](#configuration)

You can use the config.php file in the root directory

You also can handover the parameters while crating the Mpay24 Object

```
require_once("../bootstrap.php");
use Mpay24\Mpay24;
use Mpay24\Mpay24Order; //if you are using paymentPage

$mpay24 = new Mpay24('9****', '*********');
```

If you want to have a more flexible approach you can create a [configuration object](https://github.com/mpay24/mpay24-php/wiki/Configuring-the-php-sdk).

#### Create a token for seamless creditcard payments

[](#create-a-token-for-seamless-creditcard-payments)

```
$tokenizer = $mpay24->token("CC")->getPaymentResponse();
```

#### Create a payment

[](#create-a-payment)

Creditcard payment with a token

```
$payment = array(
  "amount" => "100",
  "currency" => "EUR",
  "token" => $_POST['token']
);
$result = $mpay24->payment("TOKEN", "123 TID", $payment);
```

Paypal payment

```
$payment = array(
  "amount" => "100",
  "currency" => "EUR"
);
$result = $mpay24->payment("PAYPAL", "123 TID", $payment);
```

#### Create a payment page

[](#create-a-payment-page)

Initialize a minimum payment page

```
use Mpay24\Mpay24Order;

$mdxi = new Mpay24Order();
$mdxi->Order->Tid = "123";
$mdxi->Order->Price = "1.00";
$mdxi->Order->URL->Success      = 'http://yourpage.com/success';
$mdxi->Order->URL->Error        = 'http://yourpage.com/error';
$mdxi->Order->URL->Confirmation = 'http://yourpage.com/confirmation';

$paymentPageURL = $mpay24->paymentPage($mdxi)->getLocation(); // redirect location to the payment page

header('Location: '.$paymentPageURL);
```

[How to work with ORDER objects](https://github.com/mpay24/mpay24-php/wiki/How-to-work-with-ORDER-objects)

#### Get current transaction status

[](#get-current-transaction-status)

With the unique mPAYTID number that we send back in the response messages

```
$mpay24->paymentStatus("12345");
```

With the TID that we received by the merchant request *If you don't have unique TID you will only get the last transaction with this number*

```
$mpay24->paymentStatusByTID("123 TID");
```

### Prerequisites

[](#prerequisites)

In order for the Mpay24 PHP SDK to work, your installation will have to meet the following prerequisites:

- [PHP &gt;= 5.4](http://www.php.net/)
- [cURL](http://at2.php.net/manual/de/book.curl.php)
- [DOM](http://at2.php.net/manual/de/book.dom.php)
- [Mcrypt](http://at2.php.net/manual/en/mcrypt)

Please refer to  or consult your systems administrator in order to find out if your system fulfills the prerequisites.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

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

### Community

Maintainers

![](https://www.gravatar.com/avatar/190b21a93ede3e922f186b86be10c9df60ff807d7ba95b7a1a6095414dd3d557?d=identicon)[PandaHugMonster](/maintainers/PandaHugMonster)

---

Top Contributors

[![tobiaslins](https://avatars.githubusercontent.com/u/2978876?v=4)](https://github.com/tobiaslins "tobiaslins (87 commits)")[![PandaHugMonster](https://avatars.githubusercontent.com/u/5005505?v=4)](https://github.com/PandaHugMonster "PandaHugMonster (13 commits)")[![netbull](https://avatars.githubusercontent.com/u/2797954?v=4)](https://github.com/netbull "netbull (8 commits)")[![schoradt](https://avatars.githubusercontent.com/u/397688?v=4)](https://github.com/schoradt "schoradt (3 commits)")[![stefanpolzer](https://avatars.githubusercontent.com/u/8753847?v=4)](https://github.com/stefanpolzer "stefanpolzer (3 commits)")[![chesio](https://avatars.githubusercontent.com/u/2021167?v=4)](https://github.com/chesio "chesio (1 commits)")

### Embed Badge

![Health badge](/badges/panda-hug-monster-mpay24/health.svg)

```
[![Health](https://phpackages.com/badges/panda-hug-monster-mpay24/health.svg)](https://phpackages.com/packages/panda-hug-monster-mpay24)
```

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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