- adds callback form
customer.source.expiring
. Thanks @Japestrale!
- Fixes Stripe API update on 2018-02-05 that breaks the plan builder (thanks to @georgecheng for reporting this!)
- Added additional callbacks (thanks @lloydpick & @dja)
- Fixes js partial crash if stripe_js_version is not defined
- Make stripe-ruby-mock an optional dependency (thanks @gaffneyc)
- Adds a testing module for testing callbacks (thanks @Pyo25)
- Fixes loading with ActionController::API (thanks @gaffneyc)
- Fixes
NoMethodError: NoMethodError (undefined method
object' for #ActionController::Parameters` (thanks to a whole bunch of people for reporting this)
- Remove authenticity token check (thanks @lewispb)
- Adding timeout options to config (thanks @rgerard)
- Add 'day' as possible plan interval (thanks @vdragsic and @artemave)
- Fixes a bug with Stripe JS V3, i.e.
Stripe.setPublishableKey
is no longer a function. Thanks to @kartikluke for reporting this.
- [BREAKING] Update to latest stripe events (thanks @hopsoft). Note that if you are using the
after_customer_card_created
,after_customer_card_updated
orafter_customer_card_deleted
callbacks, you MUST update them toafter_customer_source_created
,after_customer_source_updated
orafter_customer_source_deleted
respectively. You also need to start using Stripe API Version > 2015-02-18 or else the webhook might not work as expected. - [BREAKING] Updates to the latest version of Stripe JS. If you were using
stripe_javascript_tag
without specifying the version number, note that it will now default to Stripe JS v3. This version is incompatible with the previous default. - The gem will only be tested on Rails 4 and 5 from now on.
- Gem will henceforth only be tested on Ruby >= 2.1.9.
- add statement descriptor to plan attributes (thanks @jbender)
- Relax version constraint on the responders gem
- Support for api_version header parameter (thanks @kiddrew)
- Relax version constraint on stripe gem (thanks @gaffneyc)
- Support alternate versions of stripe js
- add
responders
gem as dependency to supportrespond_to
method - fix unit tests with Rails 4.2 and Rails 5.0
- add
eager_load
option to load callbacks into classes in non-eager-loaded enviroments
- Rename api_key to secret_key
- add
auto_mount
option to allow for manually mounting the webhook endpoints
- make the default max redemptions 1
- add stripe::coupons::reset! task to redefine all coupons
- bugfix allowing creation of coupons without max_redemptions
- manage coupons with config/stripe/coupons.rb
- out of the box support for webhooks and critical/non-critical event handlers
- add :only guards for which webhooks you respond to-
- move stripe.js out of asset pipeline, and insert it with utility functions
- add config/stripe/plans.rb to define and create plans
- use
STRIPE_API_KEY
as default value ofconfig.stripe.api_key
- require stripe.js from asset pipeline
- autoconfigure stripe.js with config.stripe.publishable_key.
- add rake stripe:verify to ensure stripe.com authentication is configured properly
- basic railtie