Skip to content

Commit bb4a6d1

Browse files
committed
Readme added and PHP 5.3 fix
1 parent 9414444 commit bb4a6d1

File tree

3 files changed

+63
-8
lines changed

3 files changed

+63
-8
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Omnipay: WebMoney
2+
3+
**WebMoney driver for the Omnipay PHP payment processing library**
4+
5+
[![Build Status](https://travis-ci.org/dercoder/omnipay-webmoney.png?branch=master)](https://travis-ci.org/dercoder/omnipay-webmoney)
6+
[![Coverage Status](https://coveralls.io/repos/dercoder/omnipay-webmoney/badge.svg?branch=master&service=github)](https://coveralls.io/github/dercoder/omnipay-webmoney?branch=master)
7+
[![Dependency Status](https://www.versioneye.com/user/projects/561d2ed236d0ab0021000009/badge.png)](https://www.versioneye.com/user/projects/561d2ed236d0ab0021000009)
8+
9+
[![Latest Stable Version](https://poser.pugx.org/dercoder/omnipay-webmoney/v/stable.png)](https://packagist.org/packages/dercoder/omnipay-webmoney)
10+
[![Total Downloads](https://poser.pugx.org/dercoder/omnipay-webmoney/downloads.png)](https://packagist.org/packages/dercoder/omnipay-webmoney)
11+
[![Latest Unstable Version](https://poser.pugx.org/dercoder/omnipay-webmoney/v/unstable.png)](https://packagist.org/packages/dercoder/omnipay-webmoney)
12+
[![License](https://poser.pugx.org/dercoder/omnipay-webmoney/license.png)](https://packagist.org/packages/dercoder/omnipay-webmoney)
13+
14+
[Omnipay](https://github.com/omnipay/omnipay) is a framework agnostic, multi-gateway payment
15+
processing library for PHP 5.3+. This package implements [WebMoney](https://www.webmoney.az) support for Omnipay.
16+
17+
## Installation
18+
19+
Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it
20+
to your `composer.json` file:
21+
22+
```json
23+
{
24+
"require": {
25+
"dercoder/omnipay-webmoney": "~1.0"
26+
}
27+
}
28+
```
29+
30+
And run composer to update your dependencies:
31+
32+
$ curl -s http://getcomposer.org/installer | php
33+
$ php composer.phar update
34+
35+
## Basic Usage
36+
37+
The following gateways are provided by this package:
38+
39+
* WebMoney
40+
41+
For general usage instructions, please see the main [Omnipay](https://github.com/omnipay/omnipay)
42+
repository.
43+
44+
## Support
45+
46+
If you are having general issues with Omnipay, we suggest posting on
47+
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
48+
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.
49+
50+
If you want to keep up to date with release anouncements, discuss ideas for the project,
51+
or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which
52+
you can subscribe to.
53+
54+
If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/dercoder/omnipay-webmoney/issues),
55+
or better yet, fork the library and submit a pull request.

src/Message/PayoutRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,16 +270,16 @@ public function getData()
270270

271271
public function sendData($data)
272272
{
273-
$this->httpClient->setConfig([
274-
'curl.options' => [
273+
$this->httpClient->setConfig(array(
274+
'curl.options' => array(
275275
CURLOPT_CAINFO => $this->getCertificatePath('WMUsedRootCAs.crt'),
276276
CURLOPT_SSLCERT => $this->getSslFile(),
277277
CURLOPT_SSLKEY => $this->getSslKey(),
278278
CURLOPT_SSLVERSION => 1,
279279
CURLOPT_SSL_VERIFYHOST => 2,
280280
CURLOPT_SSL_VERIFYPEER => 1,
281-
],
282-
]);
281+
),
282+
));
283283

284284
$httpResponse = $this->httpClient->post($this->endpoint, null, $data)->send();
285285

tests/GatewayTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ public function testGateway()
3838

3939
public function testFetchTransaction()
4040
{
41-
$request = $this->gateway->fetchTransaction([
41+
$request = $this->gateway->fetchTransaction(array(
4242
'transactionId' => '1444212666'
43-
]);
43+
));
4444

4545
$this->assertSame('1444212666', $request->getTransactionId());
4646
}
4747

4848
public function testPayout()
4949
{
50-
$request = $this->gateway->payout([
50+
$request = $this->gateway->payout(array(
5151
'transactionId' => '1444111666',
5252
'requestNumber' => '111222333',
5353
'customerPurse' => 'Z123428476700',
@@ -57,7 +57,7 @@ public function testPayout()
5757
'onlyAuth' => false,
5858
'description' => 'Payout',
5959
'amount' => '12.46'
60-
]);
60+
));
6161

6262
$this->assertSame('1444111666', $request->getTransactionId());
6363
$this->assertSame('111222333', $request->getRequestNumber());

0 commit comments

Comments
 (0)