README.md in stripe_event-0.1.1 vs README.md in stripe_event-0.2.0

- old
+ new

@@ -1,7 +1,9 @@ ## stripe_event +[![Build Status](https://secure.travis-ci.org/integrallis/stripe_event.png?branch=master)](http://travis-ci.org/integrallis/stripe_event) + stripe_event is built on the ActiveSupport::Notifications API. Incoming webhook requests are authenticated by retrieving the event from Stripe. Authenticated events are published to subscribers. ## Install @@ -19,12 +21,20 @@ ```ruby # config/initializers/stripe.rb Stripe.api_key = ENV['STRIPE_API_KEY'] # Set your api key -# Define subscriber behavior StripeEvent.subscribe 'charge.failed' do |event| + # Define subscriber behavior MyClass.handle_failed_charge(event) +end + +StripeEvent.subscribe 'customer.created', 'customer.updated' do |event| + # Handle multiple event types +end + +StripeEvent.subscribe do |event| + # Handle all event types - logging, etc. end ``` ## Register webhook url with Stripe