Class: Payola::SyncSubscription
- Inherits:
-
Object
- Object
- Payola::SyncSubscription
- Defined in:
- app/services/payola/sync_subscription.rb
Class Method Summary collapse
Class Method Details
.call(event) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/services/payola/sync_subscription.rb', line 3 def self.call(event) stripe_sub = event.data.object sub = Payola::Subscription.find_by!(stripe_id: stripe_sub.id) sub.sync_with!(stripe_sub) end |