lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.42.6 vs lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.42.7
- old
+ new
@@ -291,9 +291,13 @@
:Vendor => @options[:login],
:TxType => TRANSACTIONS[action],
:VPSProtocol => "2.23"
)
+ if(application_id && (application_id != Gateway.application_id))
+ parameters.update(:ReferrerID => application_id)
+ end
+
parameters.collect { |key, value| "#{key}=#{CGI.escape(value.to_s)}" }.join("&")
end
# SagePay returns data in the following format
# Key1=value1