Welcome to the mPAY24 Developer portal.

mPAY24 makes it easy to accept payments in your website or app.
Get integrated quickly using our documentation or using a plugin for your shop system.

Advanced Redirect Integration

This page shows you some examples, after Getting Started Guide was successful.

🚧

Order of the elements

The elements need to be provided in the correct order.

Enable the new "MODERN" Payment Page and set the displayed language to "RU"

$mdxi->Order->TemplateSet->setLanguage("RU");
$mdxi->Order->TemplateSet->setCSSName("MODERN");

Activate EPS (e.g. for pre-selection)

$mdxi->Order->PaymentTypes->setEnable("true");
$mdxi->Order->PaymentTypes->Payment(1)->setType("EPS");
$mdxi->Order->PaymentTypes->Payment(1)->setBrand("INTERNATIONAL");

Activate CreditCards and EPS

$mdxi->Order->PaymentTypes->setEnable("true");
$mdxi->Order->PaymentTypes->Payment(1)->setType("EPS");
$mdxi->Order->PaymentTypes->Payment(1)->setBrand("INTERNATIONAL");
$mdxi->Order->PaymentTypes->Payment(2)->setType("CC");

Display a shoppingcart on the Payment Page

$mdxi->Order->ShoppingCart->Item(1)->Number = 1;
$mdxi->Order->ShoppingCart->Item(1)->ProductNr = "PNR-1586KQE";
$mdxi->Order->ShoppingCart->Item(1)->Description = "Book";
$mdxi->Order->ShoppingCart->Item(1)->Quantity = 1;
$mdxi->Order->ShoppingCart->Item(1)->ItemPrice = 12.30;
$mdxi->Order->ShoppingCart->Item(1)->ItemPrice->setTax(2.30);
$mdxi->Order->ShoppingCart->Item(1)->Price = 12.30;

$mdxi->Order->ShoppingCart->Item(2)->Number = 2;
$mdxi->Order->ShoppingCart->Item(2)->ProductNr = "PNR-1986SRF";
$mdxi->Order->ShoppingCart->Item(2)->Description = "Ultra HD Movie";
$mdxi->Order->ShoppingCart->Item(2)->Quantity = 1;
$mdxi->Order->ShoppingCart->Item(2)->ItemPrice = 15.70;
$mdxi->Order->ShoppingCart->Item(2)->ItemPrice->setTax(2.40);
$mdxi->Order->ShoppingCart->Item(2)->Price = 15.70;

Define the Redirect URLs (back to the merchant) and the confirmation-URL

$mdxi->Order->URL->Success = "https://yourdomain.com/callback/success.php";
$mdxi->Order->URL->Error = "https://yourdomain.com/callback/error.php";
$mdxi->Order->URL->Confirmation = "https://yourdomain.com/callback/confirm.php?token=";
$mdxi->Order->URL->Cancel = "https://yourdomain.com/index.html";

Updated 3 years ago

Advanced Redirect Integration


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.