# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 10 def acknowledge true end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 14 def complete? status == 'Completed' || status == 'Pending' end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 48 def country params['Country'] end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 44 def currency params['Currency'] end
the money amount we received in X.2 decimal
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 40 def gross params['Amount'] end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 31 def item_id params['Merchant Order No'] end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 52 def other_details params['Other Details'] end
Take the posted data and move the relevant data into a hash
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 61 def parse(post) super values = params['responseparams'].to_s.split('|') response_params = values.size == 3 ? ['DirecPay Reference ID', 'Flag', 'Error message'] : RESPONSE_PARAMS response_params.each_with_index do |name, index| params[name] = values[index] end params end
# File lib/active_merchant/billing/integrations/direc_pay/notification.rb, line 18 def status case params['Flag'] when 'SUCCESS' 'Completed' when 'PENDING' 'Pending' when 'FAIL' 'Failed' else 'Error' end end
Generated with the Darkfish Rdoc Generator 2.