Sha256: 84b482513ac30c95fe7976074ef0c14cedcb3df8ae28c57e4166d5dfac5b80f7
Contents?: true
Size: 399 Bytes
Versions: 4
Compression:
Stored size: 399 Bytes
Contents
class PaymentNotification < ActiveRecord::Base belongs_to :order serialize :params after_create :mark_order_as_paid private def mark_order_as_paid if(status == "Completed") logger.info "Order #{order.number} should be marked as paid now -- IPN status 'Completed'" #order.update_attributes({:paid_on => Date.today, :status_id => Status.PAID.id}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems