Class: OffsitePayments::Integrations::Pay2go::Helper
- Inherits:
-
Helper
- Object
- Helper
- OffsitePayments::Integrations::Pay2go::Helper
- Defined in:
- lib/offsite_payments/integrations/pay2go.rb
Instance Method Summary collapse
- #encrypted_data ⇒ Object
-
#initialize(order, account, options = {}) ⇒ Helper
constructor
A new instance of Helper.
Constructor Details
#initialize(order, account, options = {}) ⇒ Helper
Returns a new instance of Helper.
48 49 50 51 |
# File 'lib/offsite_payments/integrations/pay2go.rb', line 48 def initialize(order, account, = {}) super add_field 'MerchantID', merchant_id end |
Instance Method Details
#encrypted_data ⇒ Object
114 115 116 117 118 |
# File 'lib/offsite_payments/integrations/pay2go.rb', line 114 def encrypted_data url_encrypted_data = OffsitePayments::Integrations::Pay2go.fetch_url_encode_data(@fields) add_field 'CheckValue', url_encrypted_data end |