lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.72.0 vs lib/active_merchant/billing/gateways/wirecard.rb in activemerchant-1.73.0

- old
+ new

@@ -233,31 +233,31 @@ end add_address(xml, options[:billing_address]) when :capture, :bookback xml.tag! 'GuWID', options[:preauthorization] - add_amount(xml, money) + add_amount(xml, money, options) when :reversal xml.tag! 'GuWID', options[:preauthorization] end add_customer_data(xml, options) end end end # Includes the payment (amount, currency, country) to the transaction-xml def add_invoice(xml, money, options) - add_amount(xml, money) + add_amount(xml, money, options) xml.tag! 'Currency', options[:currency] || currency(money) xml.tag! 'CountryCode', options[:billing_address][:country] xml.tag! 'RECURRING_TRANSACTION' do xml.tag! 'Type', options[:recurring] || 'Single' end end # Include the amount in the transaction-xml - def add_amount(xml, money) - xml.tag! 'Amount', amount(money) + def add_amount(xml, money, options) + xml.tag! 'Amount', localized_amount(money, options[:currency] || currency(money)) end # Includes the credit-card data to the transaction-xml def add_creditcard(xml, creditcard) raise "Creditcard must be supplied!" if creditcard.nil?