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



103
104
105
# File 'lib/adyen/notification.rb', line 103

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

Instance Method Details

#live=(value) ⇒ Object



107
108
109
# File 'lib/adyen/notification.rb', line 107

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

#success=(value) ⇒ Object



111
112
113
# File 'lib/adyen/notification.rb', line 111

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

#value=(value) ⇒ Object



115
116
117
# File 'lib/adyen/notification.rb', line 115

def value=(value)
  super(Adyen::Formatter::Price.from_cents(value)) unless value.blank?
end