Class: ActiveMerchant::Billing::Integrations::Paxum::Helper
- Includes:
- Common
- Defined in:
- lib/active_merchant/billing/integrations/paxum/helper.rb
Instance Attribute Summary
Attributes inherited from Helper
Instance Method Summary collapse
- #form_fields ⇒ Object
-
#initialize(order, account, options = {}) ⇒ Helper
constructor
A new instance of Helper.
- #params ⇒ Object
Methods included from Common
#generate_signature, #generate_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 14 15 16 17 18 19 20 |
# File 'lib/active_merchant/billing/integrations/paxum/helper.rb', line 8 def initialize(order, account, = {}) @paxum_options = .dup .delete(:description) .delete(:fail_url) .delete(:success_url) .delete(:result_url) super add_field "button_type_id", "1" add_field "variables", "notify_url=#{@paxum_options[:result_url]}" @paxum_options.each do |key, value| add_field mappings[key], value end 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_fields ⇒ Object
22 23 24 |
# File 'lib/active_merchant/billing/integrations/paxum/helper.rb', line 22 def form_fields @fields end |
#params ⇒ Object
26 27 28 |
# File 'lib/active_merchant/billing/integrations/paxum/helper.rb', line 26 def params @fields end |