diff --git a/Changelog.md b/Changelog.md index 7fa90ed..feec55b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,17 @@ +## 2.5.1 (2024-07-14) +- 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 ! + ## 2.5.0 (2023-03-21) - Allow `stripe_elements_tag` to accept a block. Thanks @chip ! diff --git a/lib/stripe/callbacks.rb b/lib/stripe/callbacks.rb index 3f74d59..20e11d2 100644 --- a/lib/stripe/callbacks.rb +++ b/lib/stripe/callbacks.rb @@ -25,6 +25,8 @@ module Callbacks callback 'charge.dispute.funds_withdrawn' callback 'charge.dispute.updated' callback 'charge.refund.updated' + callback 'checkout.session.async_payment_failed' + callback 'checkout.session.async_payment_succeeded' callback 'checkout.session.completed' callback 'checkout.session.expired' callback 'coupon.created' @@ -42,12 +44,19 @@ module Callbacks callback 'customer.source.updated' callback 'customer.subscription.created' callback 'customer.subscription.deleted' + callback 'customer.subscription.paused' + callback 'customer.subscription.pending_update_applied' + callback 'customer.subscription.pending_update_expired' + callback 'customer.subscription.resumed' callback 'customer.subscription.trial_will_end' callback 'customer.subscription.updated' callback 'file.created' callback 'invoice.created' + callback 'invoice.deleted' + callback 'invoice.finalization_failed' callback 'invoice.finalized' callback 'invoice.marked_uncollectible' + callback 'invoice.overdue' callback 'invoice.paid' callback 'invoice.payment_action_required' callback 'invoice.payment_failed' @@ -56,6 +65,7 @@ module Callbacks callback 'invoice.upcoming' callback 'invoice.updated' callback 'invoice.voided' + callback 'invoice.will_be_due' callback 'invoiceitem.created' callback 'invoiceitem.deleted' callback 'invoiceitem.updated'