Skip to content

Commit

Permalink
Mono::verifyWebHook readme
Browse files Browse the repository at this point in the history
  • Loading branch information
myckhel authored Sep 5, 2021
1 parent c73d72f commit fde6a21
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit fde6a21

Please sign in to comment.