Sha256: 7e872e8c520b97fddfcdb4042d6462262cbb692f237c6037dc25525d7f10716c
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
module Catarse class PaymentNotificationObserver < ActiveRecord::Observer def before_save(payment_notification) return unless payment_notification.extra_data if payment_notification.extra_data['status_pagamento'] == '6' #payment is being processed Notification.create_notification_once(:processing_payment, payment_notification.backer.user, {backer_id: payment_notification.backer.id}, backer: payment_notification.backer, project_name: payment_notification.backer.project.name, payment_method: payment_notification.backer.payment_method) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
catarse_core-1.0.0.beta | app/observers/catarse/payment_notification_observer.rb |