Class: Adyen::Notification::HttpPost

Inherits:
Adyen::Notification show all
Defined in:
lib/adyen/notification.rb

Constant Summary

Constants inherited from Adyen::Notification

DEFAULT_TABLE_NAME

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Adyen::Notification

#authorisation?, #collect_payment_for_recurring_contract!, #deactivate_recurring_contract!, #successful_authorisation?

Class Method Details

.log(request) ⇒ Object



53
54
55
# File 'lib/adyen/notification.rb', line 53

def self.log(request)
  super(request.params)
end

Instance Method Details

#live=(value) ⇒ Object



57
58
59
# File 'lib/adyen/notification.rb', line 57

def live=(value)
  self.write_attribute(:live, [true, 1, '1', 'true'].include?(value)) 
end

#success=(value) ⇒ Object



61
62
63
# File 'lib/adyen/notification.rb', line 61

def success=(value)
  self.write_attribute(:success, [true, 1, '1', 'true'].include?(value)) 
end

#value=(value) ⇒ Object



65
66
67
# File 'lib/adyen/notification.rb', line 65

def value=(value)
  self.write_attribute(:value, Adyen::Formatter::Price.from_cents(value)) unless value.blank?
end