README.md in stripe_event-1.5.1 vs README.md in stripe_event-1.6.0

- old
+ new

@@ -99,10 +99,10 @@ This is only truly secure if your webhook endpoint is accessed over SSL, which Stripe strongly recommends anyway. ## Configuration -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 [user_id parameter](https://stripe.com/docs/apps/getting-started#webhooks) from the top level to detect the customer for the event, then grab their specific API key). You can do this: +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 [user_id parameter](https://stripe.com/docs/connect/authentication#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_retriever = lambda do |params| api_key = Account.find_by!(stripe_user_id: params[:user_id]).api_key Stripe::Event.retrieve(params[:id], api_key)