Skip to content

Commit

Permalink
Merge pull request #231 from 4nd2in/feature/add_missing_webhook_callb…
Browse files Browse the repository at this point in the history
…acks

Feature: add missing callbacks
  • Loading branch information
tansengming authored Aug 9, 2024
2 parents 6d785de + 65e1a50 commit fb05080
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -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 !
Expand Down
10 changes: 10 additions & 0 deletions lib/stripe/callbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down

0 comments on commit fb05080

Please sign in to comment.