Skip to content

Commit

Permalink
Merge pull request #24 from apoca/develop
Browse files Browse the repository at this point in the history
merge develop into master
  • Loading branch information
apoca authored Apr 10, 2019
2 parents c1e021f + d27a1fc commit 015b0d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,22 @@ $request = [
$response = Sibs::checkout($request)->pay();
```

#### Response
### Asynchronous Server-to-Server MBWay
In an asynchronous workflow a redirection takes place to allow the account holder to complete/verify the payment.<br/>
Put the brand parameter equals to "MBWAY" and the type equals to PA. The accountId should be a phone number like this <country_dial_code#phone_number>.
```php
$request = [
'amount' => 10.44,
'currency' => 'EUR',
'brand' => 'MBWAY',
'type' => 'PA',
'accountId' => '351#911222111',
];
$response = Sibs::checkout($request)->pay();
```

If you are in test mode put the mode parameter on sibs config file equals to test.
#### Response Example

```JSON
{
Expand Down Expand Up @@ -187,15 +202,16 @@ $response = Sibs::checkout($request)->pay();
}
```


[See oficial SIBS api reference](https://sibs.docs.onlinepayments.pt/)

## Feedback

We'd love to get feedback on how you're using lambda-resize-image and things we could add to make this tool better. Feel free to contact us at [email protected]
We'd love to get feedback on how you're using laravel-sibs-payments and things we could add to make this tool better. Feel free to contact us at [email protected]

## Contributing

We'd love to get feedback on how you're using *lambda-resize-image* and things we could add to make this tool better. Feel.
We'd love to get feedback on how you're using *laravel-sibs-payments* and things we could add to make this tool better. Feel.

## License

Expand Down
5 changes: 5 additions & 0 deletions config/sibs.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@
'token' => env('SIBS_AUTH_TOKEN', 'Bearer OGE4Mjk0MTg1MzMyYmJlNjAxNTMzNzU0NzZjMzE1Mjd8RzV3UDVUekY1aw=='),
],
'entity' => env('SIBS_ENTITY', '21075'),

/*
* After completing your SIBS registration you will receive a key to decrypt its notifications via webhook.
*/
'webHook' => env('SIBS_WEBHOOK_KEY', '')
];

0 comments on commit 015b0d8

Please sign in to comment.