class OffsitePayments::Integrations::Webmoney::Notification

Public Instance Methods

acknowledge(authcode = nil) click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 109
def acknowledge(authcode = nil)
  (security_key == generate_signature)
end
amount() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 85
def amount
  Money.from_amount(BigDecimal(gross), currency)
end
currency() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 117
def currency
  'RUB'
end
gross() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 97
def gross
  params['LMI_PAYMENT_AMOUNT']
end
item_id() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 93
def item_id
  params['LMI_PAYMENT_NO']
end
key_present?() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 89
def key_present?
  params["LMI_HASH"].present?
end
recognizes?() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 81
def recognizes?
  (params.has_key?('LMI_PAYMENT_NO') && params.has_key?('LMI_PAYMENT_AMOUNT'))
end
secret() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 105
def secret
  @options[:secret]
end
security_key() click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 101
def security_key
  params["LMI_HASH"]
end
success_response(*args) click to toggle source
# File lib/offsite_payments/integrations/webmoney.rb, line 113
def success_response(*args)
  {:nothing => true}
end