Skip to content

Commit fde6a21

Browse files
authored
Mono::verifyWebHook readme
1 parent c73d72f commit fde6a21

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

readme.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ Cac::company($id, $params);
8484
```php
8585
use Myckhel\Mono\Support\Payment;
8686

87-
Payment::initiate();
87+
Payment::initiate($params);
8888

89-
Payment::verify();
89+
Payment::verify($params);
9090

91-
Payment::oneTimePayment();
91+
Payment::oneTimePayment($params);
9292

93-
Payment::createPlan();
93+
Payment::createPlan($params);
9494

95-
Payment::listPlans();
95+
Payment::listPlans($params);
9696

97-
Payment::updatePlan();
97+
Payment::updatePlan($params);
9898

99-
Payment::deletePlan();
99+
Payment::deletePlan($params);
100100
```
101101

102102
### Wallet
@@ -105,6 +105,16 @@ use Myckhel\Mono\Support\Wallet;
105105

106106
Payment::balance($params);
107107
```
108+
109+
## Mono
110+
- ### `verifyWebHook`
111+
Method to verify incoming webhook secret
112+
```php
113+
use Mono;
114+
115+
Mono::verifyWebHook($request->header('mono-webhook-secret'));
116+
```
117+
108118
### Using WebHook route
109119
Laravel mono provides you a predefined endpoint that listens to and validates incoming mono's webhook events.
110120
It emits `Myckhel\Mono\Events\Hook` on every incoming hooks which could be listened to.

0 commit comments

Comments
 (0)