This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Munir Wanis edited this page Oct 25, 2015
·
3 revisions
Welcome to the mundipagg-one-php wiki!
$ composer require mundipagg/mundipagg-one-php
require __DIR__ . '/mundipagg-one-php/init.php';
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';
}
<= $ 1.050,00 -> Authorized
>= $ 1.050,01 && < $ 1.051,71 -> Timeout
>= $ 1.500,00 -> Not Authorized
<= $ 1.050,00 -> Captured
>= $ 1.050,01 -> Not Captured
<= $ 1.050,00 -> Cancelled
>= $ 1.050,01 -> Not Cancelled
<= $ 1.050,00 -> Refunded
>= $ 1.050,01 -> Not Refunded