diff --git a/CHANGELOG b/CHANGELOG index e16376e1dab..bc0a230c221 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,6 @@ = ActiveMerchant CHANGELOG +* Fix shipping amount option in Sage gateway [Darrick Wiebe] * Improved message and error message handling [Soleone] * Get Wirecard working in the Live environment [Soleone] * Remove dead code in PayPal Common API files [cody] diff --git a/lib/active_merchant/billing/gateways/sage/sage_core.rb b/lib/active_merchant/billing/gateways/sage/sage_core.rb index 9a44c3abf4b..36f32a913fa 100644 --- a/lib/active_merchant/billing/gateways/sage/sage_core.rb +++ b/lib/active_merchant/billing/gateways/sage/sage_core.rb @@ -34,7 +34,7 @@ def initialize(options = {}) def add_invoice(post, options) post[:T_ordernum] = options[:order_id].slice(0, 20) post[:T_tax] = amount(options[:tax]) unless options[:tax].blank? - post[:T_shipping] = amount(options[:tax]) unless options[:tax].blank? + post[:T_shipping] = amount(options[:shipping]) unless options[:shipping].blank? end def add_reference(post, reference)