Skip to content

Commit fb05080

Browse files
authored
Merge pull request #231 from 4nd2in/feature/add_missing_webhook_callbacks
Feature: add missing callbacks
2 parents 6d785de + 65e1a50 commit fb05080

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

Changelog.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## 2.5.1 (2024-07-14)
2+
- Add the following callbacks (Thanks @4nd2in !):
3+
* `checkout.session.async_payment_failed`
4+
* `checkout.session.async_payment_succeeded`
5+
* `customer.subscription.paused`
6+
* `customer.subscription.pending_update_applied`
7+
* `customer.subscription.pending_update_expired`
8+
* `customer.subscription.resumed`
9+
* `invoice.deleted`
10+
* `invoice.finalization_failed`
11+
* `invoice.overdue`
12+
* `invoice.will_be_due`
13+
- Fix request handling in rack versions >= 3.1 where `Request#[]` is deprecated (#230). Thanks @4nd2in !
14+
115
## 2.5.0 (2023-03-21)
216

317
- Allow `stripe_elements_tag` to accept a block. Thanks @chip !

lib/stripe/callbacks.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module Callbacks
2525
callback 'charge.dispute.funds_withdrawn'
2626
callback 'charge.dispute.updated'
2727
callback 'charge.refund.updated'
28+
callback 'checkout.session.async_payment_failed'
29+
callback 'checkout.session.async_payment_succeeded'
2830
callback 'checkout.session.completed'
2931
callback 'checkout.session.expired'
3032
callback 'coupon.created'
@@ -42,12 +44,19 @@ module Callbacks
4244
callback 'customer.source.updated'
4345
callback 'customer.subscription.created'
4446
callback 'customer.subscription.deleted'
47+
callback 'customer.subscription.paused'
48+
callback 'customer.subscription.pending_update_applied'
49+
callback 'customer.subscription.pending_update_expired'
50+
callback 'customer.subscription.resumed'
4551
callback 'customer.subscription.trial_will_end'
4652
callback 'customer.subscription.updated'
4753
callback 'file.created'
4854
callback 'invoice.created'
55+
callback 'invoice.deleted'
56+
callback 'invoice.finalization_failed'
4957
callback 'invoice.finalized'
5058
callback 'invoice.marked_uncollectible'
59+
callback 'invoice.overdue'
5160
callback 'invoice.paid'
5261
callback 'invoice.payment_action_required'
5362
callback 'invoice.payment_failed'
@@ -56,6 +65,7 @@ module Callbacks
5665
callback 'invoice.upcoming'
5766
callback 'invoice.updated'
5867
callback 'invoice.voided'
68+
callback 'invoice.will_be_due'
5969
callback 'invoiceitem.created'
6070
callback 'invoiceitem.deleted'
6171
callback 'invoiceitem.updated'

0 commit comments

Comments
 (0)