lib/active_merchant/billing/gateways/d_local.rb in activemerchant-1.102.0 vs lib/active_merchant/billing/gateways/d_local.rb in activemerchant-1.103.0

- old
+ new

@@ -30,11 +30,11 @@ commit('authorize', post, options) end def capture(money, authorization, options={}) post = {} - post[:payment_id] = authorization + post[:authorization_id] = authorization add_invoice(post, money, options) if money commit('capture', post, options) end def refund(money, authorization, options={}) @@ -45,11 +45,11 @@ commit('refund', post, options) end def void(authorization, options={}) post = {} - post[:payment_id] = authorization + post[:authorization_id] = authorization commit('void', post, options) end def verify(credit_card, options={}) MultiResponse.run(:use_first_response) do |r| @@ -191,12 +191,12 @@ when 'authorize' 'secure_payments' when 'refund' 'refunds' when 'capture' - "payments/#{parameters[:payment_id]}/capture" + 'payments' when 'void' - "payments/#{parameters[:payment_id]}/cancel" + "payments/#{parameters[:authorization_id]}/cancel" end end def headers(post, options={}) timestamp = Time.now.utc.iso8601