Sha256: 4f5e60a270ffe6eabcc76e9f1127eff6b75095b2e41116eae90fdb4428545175
Contents?: true
Size: 458 Bytes
Versions: 2
Compression:
Stored size: 458 Bytes
Contents
class PaymentNotification < ActiveRecord::Base attr_accessible :params, :cart_id, :status, :transaction_id belongs_to :cart # convert params object to yaml when putting into the db and a hash when it comes out serialize :params after_create :set_purchase_date # checks to make sure this is valid are done in the payment_notification_controller.create() def set_purchase_date cart.update_attribute(:purchased_at, Time.now) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ecommerce-0.0.3 | models/payment_notification.rb |
ecommerce-0.0.2 | models/payment_notification.rb |