lib/active_merchant/billing/gateways/borgun.rb in activemerchant-1.76.0 vs lib/active_merchant/billing/gateways/borgun.rb in activemerchant-1.77.0
- old
+ new
@@ -82,10 +82,11 @@
CURRENCY_CODES["USD"] = "840"
def add_invoice(post, money, options)
post[:TrAmount] = amount(money)
post[:TrCurrency] = CURRENCY_CODES[options[:currency] || currency(money)]
+ post[:TerminalID] = options[:terminal_id] || '1'
end
def add_payment_method(post, payment_method)
post[:PAN] = payment_method.number
post[:ExpDate] = format(payment_method.year, :two_digits) + format(payment_method.month, :two_digits)
@@ -127,10 +128,9 @@
def commit(action, post)
post[:Version] = '1000'
post[:Processor] = @options[:processor]
post[:MerchantID] = @options[:merchant_id]
- post[:TerminalID] = 1
url = (test? ? test_url : live_url)
request = build_request(action, post)
raw = ssl_post(url(action), request, headers)
pairs = parse(raw)