PHPackages                             samandeggs/silverstripe-stripewebhook - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. samandeggs/silverstripe-stripewebhook

ActiveSilverstripe-vendormodule[API Development](/categories/api)

samandeggs/silverstripe-stripewebhook
=====================================

A delegation interface for handling Stripe webhook events. Forked from vulcandigital/silverstripe-stripewebhook.

1.0.6(3y ago)22271BSD-3-ClausePHP

Since Feb 27Pushed 3y agoCompare

[ Source](https://github.com/samandeggs/silverstripe-stripewebhook)[ Packagist](https://packagist.org/packages/samandeggs/silverstripe-stripewebhook)[ RSS](/packages/samandeggs-silverstripe-stripewebhook/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (8)Used By (0)

silverstripe-stripewebhook
==========================

[](#silverstripe-stripewebhook)

Fork from vulcandigital/silverstripe-stripewebhook to update its use in a few ways:

- Replace yml configuration with .env variables
- Updated version of `stripe/stripe-php` and updated composer.json
- Support multiple stripe accounts

This module is a Stripe webhook event handling delegation interface, a subclass can handle one or more event and an event can be handled by one or more subclass

Requirements
------------

[](#requirements)

- silverstripe/framework: ^4
- stripe/stripe-php: ^7.43

Configuration
-------------

[](#configuration)

replace ``, and write within the `""`.

```
STRIPE_SECRET=""
STRIPE_WEBHOOK_SECRET=""

```

You can also use test keys and the webhook simulator will work fine with this module

Usage
-----

[](#usage)

1. Install and dev/build
2. Add a webhook endpoint to Stripe that points to  and ensure that it sends the events you require
3. Create your functionality for your event(s):

```
