Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
timoladoyinbo committed Jul 16, 2020
1 parent c5c742b commit e756590
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,17 +376,10 @@ Route::post(
'\App\Http\Controllers\WebhookController@handleWebhook'
);
```

This package emits a `Digikraaft\PaystackSubscription\Events\WebhookReceived` event when a webhook is received,
and a `Digikraaft\PaystackSubscription\Events\WebhookHandled` event when a webhook was handled by the package.
Both events contain the full payload of the Paystack webhook.
Under the hood, wehbook handling is done using [this package](https://github.com/digikraaft/laravel-paystack-webhooks)

You can find details about Paystack events [here](https://paystack.com/docs/payments/webhooks/#supported-events)

### Verifying Webhook Signatures
To secure your webhooks, you may use Paystack's webhook signatures. For convenience, this package
automatically includes a middleware which validates that the incoming Paystack webhook request is valid.

## Paystack API
If you would like to interact with the Paystack objects directly,
you may conveniently retrieve them using the `asPaystack` method:
Expand Down

0 comments on commit e756590

Please sign in to comment.