Class: ActiveMerchant::Billing::Integrations::PayFast::Helper

Inherits:
Helper
  • Object
show all
Includes:
Common
Defined in:
lib/active_merchant/billing/integrations/pay_fast/helper.rb

Instance Attribute Summary

Attributes inherited from Helper

#fields

Instance Method Summary collapse

Methods included from Common

#generate_signature, #notify_signature_string, #request_attributes, #request_signature_string

Methods inherited from Helper

#add_field, #add_fields, #add_raw_html_field, #billing_address, #form_method, mapping, #raw_html_fields, #shipping_address, #test?

Constructor Details

#initialize(order, account, options = {}) ⇒ Helper

Returns a new instance of Helper.



8
9
10
11
12
13
# File 'lib/active_merchant/billing/integrations/pay_fast/helper.rb', line 8

def initialize(order, , options = {})
  super
  add_field('merchant_id', )
  add_field('merchant_key', options.delete(:credential2))
  add_field('m_payment_id', order)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveMerchant::Billing::Integrations::Helper

Instance Method Details

#form_fieldsObject



15
16
17
# File 'lib/active_merchant/billing/integrations/pay_fast/helper.rb', line 15

def form_fields
  @fields
end

#paramsObject



19
20
21
# File 'lib/active_merchant/billing/integrations/pay_fast/helper.rb', line 19

def params
  @fields
end