ActiveMerchant::Billing::Integrations::Helper
Valid language codes
Italian => 1 English => 2 Spanish => 3 French => 4 Tedesco => 5
# File lib/active_merchant/billing/integrations/gestpay/helper.rb, line 13 def initialize(order, account, options = {}) super add_field('PAY1_IDLANGUAGE', 2) end
# File lib/active_merchant/billing/integrations/gestpay/helper.rb, line 38 def currency=(currency_code) code = CURRENCY_MAPPING[currency_code] raise StandardError, "Invalid currency code #{currency_code} specified" if code.nil? add_field(mappings[:currency], code) end
# File lib/active_merchant/billing/integrations/gestpay/helper.rb, line 33 def customer(params = {}) add_field(mappings[:customer][:email], params[:email]) add_field('PAY1_CHNAME', "#{params[:first_name]} #{params[:last_name]}") end
# File lib/active_merchant/billing/integrations/gestpay/helper.rb, line 59 def encryption_query_string fields = ['PAY1_AMOUNT', 'PAY1_SHOPTRANSACTIONID', 'PAY1_UICCODE'] encoded_params = fields.collect{ |field| "#{field}=#{CGI.escape(@fields[field])}" }.join(DELIMITER) "#{ENCRYPTION_PATH}?a=" + CGI.escape(@fields['ShopLogin']) + "&b=" + encoded_params + "&c=" + CGI.escape(VERSION) end
Generated with the Darkfish Rdoc Generator 2.