Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
veekthoven committed Aug 27, 2024
1 parent 424f8d4 commit 29c1753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Occasionally, you may wish to create a Paystack customer without beginning a sub
```php
$user->createAsCustomer();
```
Usually this is done with a new user signs up on your app. You can listen for the `Registered` event and called the `createAsCustomer` method in a listener.
Usually this is done when a new user signs up on your app. You can listen for the `Registered` event and call the `createAsCustomer` method in the handle method of an event listener.

```php
class CreatePaystackCustomer
Expand Down Expand Up @@ -305,7 +305,7 @@ By default, this controller will automatically handle cancelling subscriptions t
Make sure you protect incoming requests with Cashier's included webhook signature verification middleware.

### Webhooks & CSRF Protection
Since Paystack webhooks need to bypass Laravel's CSRF protection, be sure to list the URI as an exception in your VerifyCsrfToken middleware or list the route outside of the web middleware group. In Laravel 10 and earlier, this would be done in the `app/Http/Middleware/VerifyCsrfToken.php` file:
Since Paystack webhooks need to bypass Laravel's CSRF protection, be sure to list the URI as an exception in your VerifyCsrfToken middleware. In Laravel 10 and earlier, this would be done in the `app/Http/Middleware/VerifyCsrfToken.php` file:
```php
protected $except = [
'paystack/*',
Expand Down

0 comments on commit 29c1753

Please sign in to comment.