mix pin_stripe.update_supported_events (PinStripe v0.4.0)

View Source

Updates the list of supported Stripe webhook events.

This task is for library contributors to update the list of valid Stripe events that can be used with the webhook handler generators.

Usage

mix pin_stripe.update_supported_events

This task will:

  1. Run stripe trigger --help to get the list of supported events
  2. Parse the output to extract event names
  3. Write the events to priv/supported_stripe_events.txt

Requirements

You must have the Stripe CLI installed and available in your PATH. Install it from: https://stripe.com/docs/stripe-cli