lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.36.0 vs lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.37.0

- old
+ new

@@ -65,19 +65,19 @@ commit_periodic build_periodic_item(:trigger, money, nil, options) end end def refund(money, authorization, options = {}) - commit :refund, build_reference_request(money, authorization) + commit :refund, build_reference_request(money, authorization, options) end def authorize(money, credit_card, options = {}) commit :authorization, build_purchase_request(money, credit_card, options) end - def capture(money, authorization) - commit :capture, build_reference_request(money, authorization) + def capture(money, authorization, options = {}) + commit :capture, build_reference_request(money, authorization, options) end def store(creditcard, options = {}) requires!(options, :billing_id, :amount) commit_periodic(build_periodic_item(:addcrn, options[:amount], creditcard, options)) @@ -114,10 +114,10 @@ add_metadata(xml, options) xml.target! end - def build_reference_request(money, reference) + def build_reference_request(money, reference, options) xml = Builder::XmlMarkup.new transaction_id, order_id, preauth_id, original_amount = reference.split('*') xml.tag! 'amount', (money ? amount(money) : original_amount)