Class/Module Index [+]

Quicksearch

ActiveMerchant::Billing::Integrations::Gestpay::Notification

Public Instance Methods

acknowledge() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 47
def acknowledge
  true
end
complete?() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 10
def complete?
  status == 'Completed'
end
currency() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 28
def currency
  # Ruby 1.9 compat
  method = CURRENCY_MAPPING.respond_to?(:key) ? :key : :index
  CURRENCY_MAPPING.send(method, params['PAY1_UICCODE'])
end
gross() click to toggle source

the money amount we received in X.2 decimal.

# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 24
def gross
  params['PAY1_AMOUNT']
end
item_id() click to toggle source

The important param

# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 15
def item_id
  params['PAY1_SHOPTRANSACTIONID']
end
status() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 38
def status
  case params['PAY1_TRANSACTIONRESULT']
  when 'OK'
    'Completed'
  else
    'Failed'
  end
end
test?() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 34
def test?
  false
end
transaction_id() click to toggle source
# File lib/active_merchant/billing/integrations/gestpay/notification.rb, line 19
def transaction_id
  params['PAY1_BANKTRANSACTIONID']
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.