lib/active_merchant/billing/integrations/webmoney/notification.rb in activemerchant-1.28.0 vs lib/active_merchant/billing/integrations/webmoney/notification.rb in activemerchant-1.29.0

- old
+ new

@@ -7,11 +7,23 @@ def recognizes? (params.has_key?('LMI_PAYMENT_NO') && params.has_key?('LMI_PAYMENT_AMOUNT')) end + def amount + BigDecimal.new(gross) + end + def key_present? params["LMI_HASH"].present? + end + + def item_id + params['LMI_PAYMENT_NO'] + end + + def gross + params['LMI_PAYMENT_AMOUNT'] end def security_key params["LMI_HASH"] end