polem/mango-pay-client

0.1-alpha 2013-08-30 06:03 UTC

This package is not auto-updated.

Last update: 2024-05-06 13:33:34 UTC


README

Introduction

MangoPay is the global and leading API solution to accept online payments and manage e-money for marketplaces, crowdfunding and collaborative ... This non-official client is based on Guzzle

Installation

php composer.phar require polem/mango-pay-client

Usage

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

use MangoPay\Client;

$client = Client::factory(array(
    'partner_id'              => 'parterId',
    'url'                     => 'http://api-preprod.leetchi.com',
    'version'                 => 'v1',
    'private_key_path'        => 'file://'. __DIR__ . '/pkey.pem',
    'private_key_pass_phrase' => '',
));

$user = array(
    'FirstName'   => 'Doe',
    'LastName'    => 'John',
    'Email'       => 'johndoe@gmail.com',
    'Nationality' => 'FR',
    'Birthday'    => 1300186358,
    'PersonType'  => 'NATURAL_PERSON'
);


$user = $client->CreateAUser($user);
echo $user;