Class: OffsitePayments::Integrations::Pay2go::Helper

Inherits:
Helper
  • Object
show all
Defined in:
lib/offsite_payments/integrations/pay2go.rb

Instance Method Summary collapse

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, , options = {})
  super
  add_field 'MerchantID', merchant_id
end

Instance Method Details

#encrypted_dataObject



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