tansengming / stripe-rails

A Rails Engine for integrating with Stripe
MIT License
753 stars 123 forks source link

Stripe Callback invoice.paid #194

Closed SyborgStudios closed 3 years ago

SyborgStudios commented 3 years ago

Stripe uses invoice.paid not invoice.payment_succeeded.

I just monkey patched it like this.

module Stripe Callbacks.module_eval do callback 'invoice.paid' end end

tansengming commented 3 years ago

Hi @SyborgStudios thanks! I'll add callback 'invoice.paid' on a release soon.

By the way it looks like both of these callbacks exist according to https://stripe.com/docs/api/events/types#event_types-invoice.payment_succeeded

tansengming commented 3 years ago

it's out! https://github.com/tansengming/stripe-rails/releases/tag/1.10.2