File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -84,19 +84,19 @@ Cac::company($id, $params);
84
84
``` php
85
85
use Myckhel\Mono\Support\Payment;
86
86
87
- Payment::initiate();
87
+ Payment::initiate($params );
88
88
89
- Payment::verify();
89
+ Payment::verify($params );
90
90
91
- Payment::oneTimePayment();
91
+ Payment::oneTimePayment($params );
92
92
93
- Payment::createPlan();
93
+ Payment::createPlan($params );
94
94
95
- Payment::listPlans();
95
+ Payment::listPlans($params );
96
96
97
- Payment::updatePlan();
97
+ Payment::updatePlan($params );
98
98
99
- Payment::deletePlan();
99
+ Payment::deletePlan($params );
100
100
```
101
101
102
102
### Wallet
@@ -105,6 +105,16 @@ use Myckhel\Mono\Support\Wallet;
105
105
106
106
Payment::balance($params);
107
107
```
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
+
108
118
### Using WebHook route
109
119
Laravel mono provides you a predefined endpoint that listens to and validates incoming mono's webhook events.
110
120
It emits ` Myckhel\Mono\Events\Hook ` on every incoming hooks which could be listened to.
You can’t perform that action at this time.
0 commit comments