From 4e15c7f81edf38e25d4198147c817b7eb586684d Mon Sep 17 00:00:00 2001 From: Ryan McGeary Date: Wed, 4 Sep 2019 08:29:01 -0600 Subject: [PATCH] Remove legacy example from README that predated signed Stripe events Closes #127 --- README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/README.md b/README.md index 39e917b..d348188 100644 --- a/README.md +++ b/README.md @@ -105,13 +105,6 @@ StripeEvent.signing_secrets = [ If you have built an application that has multiple Stripe accounts--say, each of your customers has their own--you may want to define your own way of retrieving events from Stripe (e.g. perhaps you want to use the [account parameter](https://stripe.com/docs/connect/webhooks) from the top level to detect the customer for the event, then grab their specific API key). You can do this: -```ruby -StripeEvent.event_filter = lambda do |event| - api_key = Account.find_by!(stripe_account_id: event.account).api_key - Stripe::Event.retrieve(event.id, api_key) -end -``` - ```ruby class EventFilter def call(event)