Skip to content

Commit e9c8cf7

Browse files
committed
Updated README. Fixed phpunit dependency.
1 parent f6f15b4 commit e9c8cf7

File tree

3 files changed

+47
-19
lines changed

3 files changed

+47
-19
lines changed

CHANGELOG.md

+22-16
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@ CHANGELOG for 1.5
55
* __Sha256__ is now the <ins>default hash algorithm</ins> used to generate signature. If you still want to use __Sha1__ (previously the default algorithm for SYSTEMPAY endpoint), you must update the API config:
66

77
#### Before
8-
9-
$config = [
10-
'site_id' => ' ... ',
11-
'certificate' => ' ... ',
12-
'ctx_mode' => Api::MODE_PRODUCTION,
13-
'directory' => ' ... ',
14-
];
15-
8+
9+
```php
10+
$factory = new PayzenGatewayFactory();
11+
$gateway = $factory->create([
12+
'site_id' => ' ... ',
13+
'certificate' => ' ... ',
14+
'ctx_mode' => Api::MODE_PRODUCTION,
15+
'directory' => ' ... ',
16+
]);
17+
```
18+
1619
#### After
17-
18-
$config = [
19-
'site_id' => ' ... ',
20-
'certificate' => ' ... ',
21-
'ctx_mode' => Api::MODE_PRODUCTION,
22-
'directory' => ' ... ',
23-
'hash_mode' => Api::HASH_MODE_SHA1, // Add this entry
24-
];
20+
21+
```php
22+
$factory = new PayzenGatewayFactory();
23+
$gateway = $factory->create([
24+
'site_id' => ' ... ',
25+
'certificate' => ' ... ',
26+
'ctx_mode' => Api::MODE_PRODUCTION,
27+
'directory' => ' ... ',
28+
'hash_mode' => Api::HASH_MODE_SHA1, // Add this entry
29+
]);
30+
```

README.md

+24-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
11
PayumPayzen
22
===========
33

4-
PayZen Payum Gateway
4+
PayZen Payum Gateway (Systempay, Scellius)
5+
6+
[![Build Status][ico-github-actions]][link-github-actions]
57

68
## Installation / Configuration
7-
TODO
9+
10+
```bash
11+
composer require ekyna/payum-payzen
12+
```
13+
14+
```php
15+
use Ekyna\Component\Payum\Payzen\Api\Api;
16+
use Ekyna\Component\Payum\Payzen\PayzenGatewayFactory;
17+
18+
$factory = new PayzenGatewayFactory();
19+
20+
$gateway = $factory->create([
21+
'site_id' => '132456',
22+
'certificate' => '132456',
23+
'ctx_mode' => Api::MODE_PRODUCTION,
24+
'directory' => __DIR__ . '/payzen-cache',
25+
]);
26+
27+
// Register your convert payment action
28+
// $gateway->addAction(new \Acme\ConvertPaymentAction());
29+
```

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"psr/log": "^1.0"
2929
},
3030
"require-dev": {
31-
"phpunit/phpunit": "^8"
31+
"phpunit/phpunit": "^7.0|^8.0"
3232
},
3333
"autoload": {
3434
"psr-4": {

0 commit comments

Comments
 (0)