Class: OffsitePayments::Integrations::PayFast::Helper
- Includes:
- Common
- Defined in:
- lib/offsite_payments/integrations/pay_fast.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, #notify_signature_string, #request_attributes, #request_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?
Methods included from MoneyCompatibility
Constructor Details
#initialize(order, account, options = {}) ⇒ Helper
Returns a new instance of Helper.
99 100 101 102 103 104 |
# File 'lib/offsite_payments/integrations/pay_fast.rb', line 99 def initialize(order, account, = {}) super add_field('merchant_id', account) add_field('merchant_key', .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 OffsitePayments::Helper
Instance Method Details
#form_fields ⇒ Object
106 107 108 |
# File 'lib/offsite_payments/integrations/pay_fast.rb', line 106 def form_fields @fields end |
#params ⇒ Object
110 111 112 |
# File 'lib/offsite_payments/integrations/pay_fast.rb', line 110 def params @fields end |