Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
Munir Wanis edited this page Oct 25, 2015 · 3 revisions

Welcome to the mundipagg-one-php wiki!

MundiPagg One PHP Library

Composer

$ composer require mundipagg/mundipagg-one-php

Manual installation

require __DIR__ . '/mundipagg-one-php/init.php';

Configuration File Suggestion

In the wiki examples I'm using a second class that is called config.php as a configuration file for merchant key and URL's.

I suggest you do the same to simplify the code.

Here's the code example:

<?php

class Config
{
	const URL = 'https://sandbox.mundipaggone.com';

	const REPORT_FILE_URL = 'https://api.mundipaggone.com';

	const MERCHANT_KEY = '85328786-8BA6-420F-9948-5352F5A183EB';
}

Simulator rules by amount

Authorization

  • <= $ 1.050,00 -> Authorized
  • >= $ 1.050,01 && < $ 1.051,71 -> Timeout
  • >= $ 1.500,00 -> Not Authorized

Capture

  • <= $ 1.050,00 -> Captured
  • >= $ 1.050,01 -> Not Captured

Cancellation

  • <= $ 1.050,00 -> Cancelled
  • >= $ 1.050,01 -> Not Cancelled

Refund

  • <= $ 1.050,00 -> Refunded
  • >= $ 1.050,01 -> Not Refunded

Documentation

http://docs.mundipagg.com