Class: ActiveMerchant::Billing::Integrations::Dwolla::Helper

Inherits:
Helper
  • Object
show all
Defined in:
lib/active_merchant/billing/integrations/dwolla/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, #form_fields, mapping, #raw_html_fields, #shipping_address, #test?

Constructor Details

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

Returns a new instance of Helper.



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

def initialize(order, , options = {})
  super
  add_field('name', 'Store Purchase')

  if ActiveMerchant::Billing::Base.integration_mode == :test || options[:test]
    add_field('test', 'true')
  end 
end

Dynamic Method Handling

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