- Add the following callbacks (Thanks @4nd2in !):
checkout.session.async_payment_failed
checkout.session.async_payment_succeeded
customer.subscription.paused
customer.subscription.pending_update_applied
customer.subscription.pending_update_expired
customer.subscription.resumed
invoice.deleted
invoice.finalization_failed
invoice.overdue
invoice.will_be_due
- Fix request handling in rack versions >= 3.1 where
Request#[]
is deprecated (#230). Thanks @4nd2in and @light-flight ! - adds testing for Ruby 3 and Rails 7
- stops testing on Ruby < 3 and Rails 5
- Allow
stripe_elements_tag
to accept a block. Thanks @chip !
- Add
tax_behavior
attribute to Price. Thanks @szechyjs !
- Fix some deprecation warnings in tests. Thanks @smtlaissezfaire !
- Fix
NameError when loading JavascriptHelper
. Thanks @smtlaissezfaire !
- Add setup_intent.canceled and setup_intent.requires_action callbacks. Thanks @jamesjason !
- Add checkout.session.expired callback. Thanks @danielwellman !
- Add Subscription Schedule and Tax Rate Callbacks #213 . Thanks @lesliepoolman !
- Add price callbacks. Thanks @StevenElberger !
- Adds testing for Rails 6.0
- Add
name
attribute to coupons. Thanks @ZilvinasKucinskas!
- Add payment_intent.requires_action callback, thanks @VadimLeader.
- Add Prices as a configuration object. Thanks @jamesprior!
- Added option to ignore missing API key and don't show any warning. Thanks @ndbroadbent!
- Handle passing nil to signing_secret= and add tests. Thanks @martron!
- Everything from on the 2.0.0.pre release
- includes changes from the 1.10.2 release
- adds missing callback
invoice.paid
. Thanks @SyborgStudios.
- [Breaking] Updated to work only with Rails >= 5.1
- [Breaking] It'll only be tested on Ruby 2.7, 2.6 and 2.5.
- [Breaking] Supports the Stripe gem => 3.15.0 (from 2 years ago)
- [Breaking] Removes Stripe::PingsController controller.
- adds missing callbacks for
payment_intent
. Thanks @klapperkopp .
- Adds support for using multiple tiers in a plan, thanks @cpsoinos
- Fixes issue with
rake stripe:verify
thanks @Millariel !
- Adds support for multiple signing secrets. Thanks again @jacobcsmith !
- adds missing callbacks for
payment_intent
,payment_method
andsetup_intent
. Thanks @jacobcsmith !
- adds callback for invoice.payment_action_required. Thanks @alexagranov .
- fixes when clearing callbacks after unload doesn't play nice with eager_load. Thanks @alexagranov for reporting the problem and coming up with an initial fix for it.
- Configure publishable key from ENV. Thanks @cyu .
- fixes
require
error after update from Stripe gem. Thanks @dark-panda !
- Don't assume sprockets are loaded thanks @manusajith
- [New Feature] add support for Plan to use a constant name different from plan id thanks @alexagranov !
- Add checkout.session.completed webhook thanks @Nitrino !
- Add new invoice webhooks thanks @noahezekwugo !
- New Year New Feature: Easily include Stripe Elements into your project thanks to @garrettqmartin8 !
- Travis is now testing the gem on Ruby 2.6.0
- Fixed issue with Rails development and Spring: Clear callbacks before files are reloaded during development and test - thanks @ndbroadbent
- Removes test exception from event dispatch
- Travis is now testing the gem on Ruby 2.5.3, 2.4.5, 2.3.8
- Add usage_type, aggregate_usage, and billing_scheme - thanks @garrettqmartin8
- fixes undefined method `expand_path' for Stripe::File:Class - Thanks to @BitesGit for reporting this.
- Allow statement_descriptor to be set on products - Thanks to @jeanmartin
- Add Webhook Signature Validation - Thanks to @wkirby
- Include nickname in the payload for plans - Thanks to @jeanmartin
- New attributes for Stripe Billing Plans.
- Fixes ActionController::UnknownFormat errors - Thanks to @ndbroadbent !
- Spanking new products builder for Stripe Billing (#117) - Thanks to @renchap for suggesting this and to @henryaj for reviewing it.
- do not create new product when product id is provided (#115) - Thanks to @renchap for reporting this
- updates travis to latest rubies (#112) - Note that after this change we will only run tests on Ruby 2.5, 2.4 and 2.3
- 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