2017 © Pedro Peláez
 

library mpay24-php

Offical PHP SDK for SOAP Bindings

image

mpay24/mpay24-php

Offical PHP SDK for SOAP Bindings

  • Monday, July 16, 2018
  • by tobiaslins
  • Repository
  • 8 Watchers
  • 7 Stars
  • 7,076 Installations
  • PHP
  • 3 Dependents
  • 1 Suggesters
  • 14 Forks
  • 9 Open issues
  • 15 Versions
  • 24 % Grown

The README.md

mpay24-php

Packagist Packagist Version Packagist Downloads, (*1)

Offical PHP SDK for SOAP Bindings, (*2)

Documentation

A short demo implementation guide is available at https://docs.mpay24.com/docs/get-started Documentation is available at https://docs.mpay24.com/docs., (*3)

Composer

You can install the bindings via Composer. Run the following command:, (*4)

composer require mpay24/mpay24-php

To use the bindings, use Composer's autoload:, (*5)

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

Manual Installation

If you do not want to use Composer, you can download the latest release. Then, to use the bindings, include the bootstrap.php file., (*6)

require_once('bootstrap.php');

SDK overview

Configuration

You can use the config.php file in the root directory, (*7)

You also can handover the parameters while crating the Mpay24 Object, (*8)

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

$mpay24 = new Mpay24('9****', '*********', TRUE); //Testsystem
$mpay24 = new Mpay24('7****', '*********', FALSE); //Livesystem

If you want to have a more flexible approach you can create a configuration object., (*9)

Create a token for seamless creditcard payments

$tokenizer = $mpay24->token("CC");
$tokenizerLocation = $tokenizer->getLocation();
$token = $tokenizer->getToken();

Create a payment

Creditcard payment with a token, (*10)

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

Paypal payment, (*11)

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

Create a payment page

Initialize a minimum payment page, (*12)

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, (*13)

Get current transaction status

Using the Pull method, (*14)

With the unique mPAYTID number that we send back in the response messages, (*15)

$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, (*16)

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

Prerequisites

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

Please refer to http://www.php.net/phpinfo or consult your systems administrator in order to find out if your system fulfills the prerequisites., (*18)

The Versions

16/07 2018

dev-master

9999999-dev

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *

 

The Development Requires

16/07 2018

4.3.1

4.3.1.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *

 

The Development Requires

04/07 2018

4.3.0

4.3.0.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *

 

The Development Requires

05/03 2018

v1.0.1

1.0.1.0

  Sources   Download

05/03 2018

v2.0.0

2.0.0.0

  Sources   Download

05/03 2018

v3.0.0

3.0.0.0

  Sources   Download

05/03 2018

v3.0.1

3.0.1.0

  Sources   Download

23/01 2018

4.2.2

4.2.2.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *

 

19/01 2018

4.2.1

4.2.1.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *

 

19/01 2018

4.2.0

4.2.0.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *

 

28/08 2017

4.1.1

4.1.1.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *

 

08/08 2017

4.1.0

4.1.0.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *

 

06/06 2017

4.0.2

4.0.2.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *

 

15/02 2017

4.0.1

4.0.1.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *

 

03/02 2017

4.0.0

4.0.0.0

Offical PHP SDK for SOAP Bindings

  Sources   Download

The Requires

  • php >=5.3.3
  • ext-curl *
  • ext-dom *
  • ext-mcrypt *