lib/active_merchant/billing/integrations/moneybookers/helper.rb in activemerchant-1.15.0 vs lib/active_merchant/billing/integrations/moneybookers/helper.rb in activemerchant-1.16.0

- old
+ new

@@ -28,19 +28,30 @@ mapping :description, 'detail1_text' def initialize(order, account, options = {}) super add_tracking_token + add_default_parameters + add_seller_details(options) end private def add_tracking_token return if application_id.blank? || application_id == 'ActiveMerchant' add_field('merchant_fields', 'platform') add_field('platform', application_id) + end + + def add_default_parameters + add_field('hide_login', 1) + end + + def add_seller_details(options) + add_field('recipient_description', options[:account_name]) if options[:account_name] + add_field('country', lookup_country_code(options[:country], :alpha3)) if options[:country] end end end end end