Skip to content

Commit 8fc5398

Browse files
author
adrianbarbos
committed
Updated README.md
1 parent f5b8ffb commit 8fc5398

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Add Laravel Localization to your `composer.json` file.
3030
```json
3131
{
3232
"require": {
33-
"barryvdh/laravel-omnipay": "0.2.*@dev",
33+
"omnipay/common": "~2.0",
3434
"business-mastery/omnipay-mobilpay": "~1.0",
3535
"adrianbarbos/mobilpay": "~1.0.0"
3636
}
@@ -55,7 +55,7 @@ Add the required aliases to the list of class aliases in the same file.
5555

5656
```php
5757
...
58-
'Omnipay' => Barryvdh\Omnipay\Facade::class,
58+
'Omnipay' => Omnipay\Omnipay::class,
5959
'Mobilpay' => Adrianbarbos\Mobilpay\Mobilpay::class,
6060
...
6161
```
@@ -76,9 +76,9 @@ php artisan vendor:publish --provider="Adrianbarbos\Mobilpay\MobilpayServiceProv
7676
// controller function
7777

7878
Mobilpay::setOrderId(1)
79-
->setAmount('10.00')
80-
->setDetails('Some details')
81-
->purchase();
79+
->setAmount('10.00')
80+
->setDetails('Some details')
81+
->purchase();
8282
```
8383

8484
### Handle Reponse
@@ -89,6 +89,8 @@ Mobilpay::setOrderId(1)
8989

9090
$response = Mobilpay::response();
9191

92+
$data = $response->getData(); //array
93+
9294
switch($response->getMessage())
9395
{
9496
case 'confirmed_pending': // transaction is pending review. After this is done, a new IPN request will be sent with either confirmation or cancellation

0 commit comments

Comments
 (0)