Search for Resources and Solutions

How to create and use the Stripe's webhooks

In a previous article i've written why are important the webhooks for payments subscriptions. As Braintree, Stripe is a cool payments system which has webhooks and sunscriptions. We can use their webhooks to generate invoices, delete subscriptions and change the plan if the subscription is deleted.

How to create a webhook:

The event types:

  • customer.subscription.updated - will notify about subscription renew.
  • customer.subscription.deleted - will notify about subscription deletion.

The notifications are submitted as post data and we need to add an exception in the config.php:


$config['csrf_exclude_uris'] = array('payments/stripe/guest');

In the video below you can see how to create webhooks and how them works:

Was this article helpful?