ehrlichandreas/omnipay-perfectmoney

Perfect Money gateway for omnipay

dev-master 2014-01-29 16:10 UTC

This package is not auto-updated.

Last update: 2024-11-09 16:32:19 UTC


README

Installation

To install, simply add it to your composer.json file:

{
    "require":
    {
        "ehrlichandreas/omnipay-perfectmoney":  "dev-master"
    }
}

and run composer update

Usage

1. Balance

// include the composer autoloader
$autoloader = require __DIR__.'/vendor/autoload.php';

$parameters = array
(
    'username'  => 'your_account_id',
    'password'  => 'password',
);

$gateway = new \EhrlichAndreas\Omnipay\Perfectmoney\Gateway();

$gateway->initialize($parameters);

$response = $gateway->balance(array())->send();

$isSuccessful = $response->isSuccessful();

if ($isSuccessful)
{
    $balances = $response->getBalance();

    echo '<pre>';

    print_r($balances);
}