lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.53.0 vs lib/active_merchant/billing/gateways/vanco.rb in activemerchant-1.54.0

- old
+ new

@@ -130,10 +130,11 @@ doc.Request do doc.RequestVars do add_client_id(doc) add_amount(doc, money, options) add_payment_method(doc, payment_method, options) + add_options(doc, options) add_purchase_noise(doc) end end end end @@ -234,9 +235,13 @@ def add_refund_noise(doc) doc.ContactName("Bilbo Baggins") doc.ContactPhone("1234567890") doc.ContactExtension("None") doc.ReasonForCredit("Refund requested") + end + + def add_options(doc, options) + doc.CustomerIPAddress(options[:ip]) if options[:ip] end def add_client_id(doc) doc.ClientID(@options[:client_id]) end