ehrlichandreas / omnipay-perfectmoney
Perfect Money gateway for omnipay
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 0
Type:omnipay-gateway
Requires
- php: >=5.3.2
- asci/omnipay-sofort: dev-master
- omnipay/omnipay: 1.*
Requires (Dev)
- guzzle/plugin-mock: ~3.1
- mockery/mockery: ~0.7
- phpunit/phpunit: ~3.7.16
- silex/silex: 1.0.*@dev
- squizlabs/php_codesniffer: ~1.4.4
- twig/twig: ~1.12
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); }