View payment_notification.rb
class PaymentNotification < ActiveRecord::Base | |
belongs_to :cart | |
belongs_to :product | |
serialize :params | |
after_create :mark_cart_as_purchased, :update_qty | |
# after_create :send_mail | |
private |