Class: Pay::Asaas::Webhooks::PaymentSync
- Inherits:
-
Object
- Object
- Pay::Asaas::Webhooks::PaymentSync
- Defined in:
- lib/pay/asaas/webhooks/payment_sync.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
5 6 7 |
# File 'lib/pay/asaas/webhooks/payment_sync.rb', line 5 def call(event) Pay::Asaas::Charge.sync(event["payment"]["id"], object: event["payment"]) end |