Skip to content

Commit cf7c45a

Browse files
committed
add docs
1 parent 146afef commit cf7c45a

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Omnipay:: Offline dummy
2+
3+
Omnipay Offline Dummy Gateway for testing
4+
5+
## Instalation
6+
7+
```sh
8+
composer require descom/omnipay-offline-dummy
9+
```
10+
11+
## Basic Usage
12+
13+
### Create purchase request
14+
15+
```php
16+
use Omnipay\Omnipay;
17+
18+
$gateway = Omnipay::create('OfflineDummy');
19+
20+
$gateway->initialize([
21+
'url_notify' => 'http://example.com/payment/notify',
22+
'url_return' => 'http://example.com/payment/return',
23+
]);
24+
25+
$request = $gateway->purchase([
26+
'amount' => '12.00',
27+
'description' => 'Test purchase',
28+
'transactionId' => 1,
29+
])->send();
30+
31+
$response->redirect();
32+
```

0 commit comments

Comments
 (0)