Stripe_event

screenshot of Stripe_event

Stripe webhook integration for Rails applications.

Overview:

StripeEvent is a gem built on the ActiveSupport::Notifications API that allows users to define subscribers to handle specific event types from Stripe. Webhook requests are authenticated with a webhook signature to ensure the origin of the request. It supports multiple signing secrets and can be configured to work with multiple Stripe accounts.

Features:

  • Built on ActiveSupport::Notifications API: Utilizes the ActiveSupport::Notifications API for handling events.
  • Webhook Signature Authentication: Incoming webhook requests are authenticated with a webhook signature.
  • Define Subscribers: Define subscribers to handle specific event types from Stripe.
  • Support for Multiple Signing Secrets: Can handle multiple signing secrets for different webhook subscriptions.
  • Configuration Flexibility: Allows customization in retrieving events from Stripe and filtering out specific webhook events.
  • Supports Usage Without Rails: Can be used outside of Rails applications, like in a Sinatra implementation.
  • Testing Tools Compatibility: Testing StripeEvent subscribers can be done easily with tools like Webmock, VCR, and RequestBin.

Summary:

StripeEvent is a versatile gem that provides a convenient way to handle Stripe webhook events by defining subscribers and authenticating requests with webhook signatures. It offers flexibility in configuration, supports multiple signing secrets, and can be used both within and outside Rails applications. Additionally, it provides testing tools compatibility for verifying the behavior of subscribers.