Class: ActiveMerchant::Billing::Integrations::PayDollar::Helper

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

Instance Attribute Summary

Attributes inherited from Helper

#fields

Instance Method Summary collapse

Methods inherited from Helper

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

Constructor Details

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

Returns a new instance of Helper.



30
31
32
33
34
# File 'lib/active_merchant/billing/integrations/pay_dollar/helper.rb', line 30

def initialize(order, , options = {})
  super

  add_field mappings[:merchant], options[:credential2]
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



36
37
38
# File 'lib/active_merchant/billing/integrations/pay_dollar/helper.rb', line 36

def form_fields
  @fields
end