From fde6a21bdd695d1c433592fa00aedcf44f10db77 Mon Sep 17 00:00:00 2001 From: Michael Ishola Date: Sun, 5 Sep 2021 03:32:09 +0100 Subject: [PATCH] Mono::verifyWebHook readme --- readme.md | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/readme.md b/readme.md index a8ccf5a..30ee7e6 100644 --- a/readme.md +++ b/readme.md @@ -84,19 +84,19 @@ Cac::company($id, $params); ```php use Myckhel\Mono\Support\Payment; -Payment::initiate(); +Payment::initiate($params); -Payment::verify(); +Payment::verify($params); -Payment::oneTimePayment(); +Payment::oneTimePayment($params); -Payment::createPlan(); +Payment::createPlan($params); -Payment::listPlans(); +Payment::listPlans($params); -Payment::updatePlan(); +Payment::updatePlan($params); -Payment::deletePlan(); +Payment::deletePlan($params); ``` ### Wallet @@ -105,6 +105,16 @@ use Myckhel\Mono\Support\Wallet; Payment::balance($params); ``` + +## Mono +- ### `verifyWebHook` +Method to verify incoming webhook secret +```php +use Mono; + +Mono::verifyWebHook($request->header('mono-webhook-secret')); +``` + ### Using WebHook route Laravel mono provides you a predefined endpoint that listens to and validates incoming mono's webhook events. It emits `Myckhel\Mono\Events\Hook` on every incoming hooks which could be listened to.