Class: OffsitePayments::Integrations::Webmoney::Helper
- Includes:
- Common
- Defined in:
- lib/offsite_payments/integrations/webmoney.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, inherited, mapping, #raw_html_fields, #shipping_address, #test?
Constructor Details
#initialize(order, account, options = {}) ⇒ Helper
Returns a new instance of Helper.
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/offsite_payments/integrations/webmoney.rb', line 48 def initialize(order, account, = {}) @webmoney_options = .dup .delete(:description) .delete(:fail_url) .delete(:success_url) .delete(:result_url) super @webmoney_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 OffsitePayments::Helper
Instance Method Details
#form_fields ⇒ Object
60 61 62 |
# File 'lib/offsite_payments/integrations/webmoney.rb', line 60 def form_fields @fields end |
#params ⇒ Object
64 65 66 |
# File 'lib/offsite_payments/integrations/webmoney.rb', line 64 def params @fields end |