2017 © Pedro PelĂĄez
 

library php-webmoney

WebMoney API PHP Library

image

mitalcoi/php-webmoney

WebMoney API PHP Library

  • Thursday, May 21, 2015
  • by mitalcoi
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

WebMoney API PHP Library

Packagist Dependency Status Packagist Packagist, (*1)

Get transparent object-oriented interaction with WebMoney API., (*2)

If you just need to sign your requests to the API, use WebMoney Signer, a native PHP implementation of the WMSigner authentication module., (*3)

XML-interfaces supported

  • X2: transferring funds from one purse to another
  • X3: receiving transaction history, checking transaction status
  • X6: sending message to any WM-identifier via internal mail
  • X8: retrieving information about purse ownership, searching for system user by his/her identifier or purse
  • X9: retrieving information about purse balance
  • X11: retrieving information from client’s passport by WM-identifier
  • X14: fee-free refund
  • X17: operations with arbitration contracts
  • X18: getting transaction details via merchant.webmoney
  • X19: verifying personal information for the owner of a WM identifier

Megastock interfaces supported

Requirements

The library requires PHP 5.3 compiled with cURL extension (but you can override cURL dependencies)., (*4)

Installation

  1. Install Composer:, (*5)

    curl -sS https://getcomposer.org/installer | php
    
  2. Add the php-webmoney dependency:, (*6)

    php composer.phar require baibaratsky/php-webmoney:0.10.*
    

Usage

There are more usage examples in the project wiki., (*7)

require_once(__DIR__ . '/vendor/autoload.php'); // Require autoload file generated by composer

use baibaratsky\WebMoney;
use baibaratsky\WebMoney\Signer;

$webMoney = new WebMoney\WebMoney(new WebMoney\Request\Requester\CurlRequester);

$request = new WebMoney\Api\X\X9\Request;
$request->setSignerWmid('YOUR WMID');
$request->setRequestedWmid('REQUESTED WMID');

$request->sign(new Signer('YOUR WMID', 'FULL PATH TO KEY FILE', 'KEY FILE PASSWORD'));

if ($request->validate()) {
    /** @var WebMoney\Api\X\X9\Response $response */
    $response = $webMoney->request($request);

    if ($response->getReturnCode() === 0) {
        echo $response->getPurseByName('Z000000000000')->getAmount();
    }
}

The Versions

21/05 2015

dev-patch-2

dev-patch-2 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

20/05 2015

dev-master

9999999-dev http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

18/05 2015

dev-patch-1

dev-patch-1 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

01/04 2015

v0.10.3

0.10.3.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

27/03 2015

v0.10.2

0.10.2.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

27/01 2015

v0.10.1

0.10.1.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

20/01 2015

v0.10.0

0.10.0.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

18/01 2015

v0.9.0

0.9.0.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller wmsigner wmxi

12/08 2014

dev-light

dev-light http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller

05/06 2014

v0.8

0.8.0.0 http://github.com/baibaratsky/php-webmoney

WebMoney API PHP Library

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3

 

by Andrei Baibaratsky
by Constantin Chuprik

webmoney megastock capitaller