lib/active_merchant/billing/integrations/moneybookers/helper.rb in activemerchant-1.12.1 vs lib/active_merchant/billing/integrations/moneybookers/helper.rb in activemerchant-1.13.0
- old
+ new
@@ -24,9 +24,25 @@
mapping :notify_url, 'status_url'
mapping :return_url, 'return_url'
mapping :cancel_return_url, 'cancel_url'
mapping :description, 'detail1_text'
+
+ def initialize(order, account, options = {})
+ super
+ add_tracking_token
+ end
+
+
+ private
+
+ def add_tracking_token
+ return if application_id.blank? || application_id == 'ActiveMerchant'
+
+ add_field('merchant_fields', 'platform')
+ add_field('platform', application_id)
+ puts @fields.inspect
+ end
end
end
end
end
end