Sha256: 5a0182a43f360a3831d87ee38554824af78067d15d6082b2f0a819c064539c98
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
module Pay module Lago module Webhooks class InvoicePaymentStatusUpdated def call(event) charge = Pay::Charge.find_by_processor_and_id(:lago, event.invoice.lago_id) return unless charge.present? charge.data.merge!(payment_status: event.invoice.payment_status) charge.save! end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pay-lago-0.1.1 | lib/pay/lago/webhooks/invoice_payment_status_updated.rb |
pay-lago-0.1.0 | lib/pay/lago/webhooks/invoice_payment_status_updated.rb |