lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.44.1 vs lib/active_merchant/billing/gateways/adyen.rb in activemerchant-1.45.0
- old
+ new
@@ -49,30 +49,34 @@
requires!(options, :order_id)
post = {}
post[:modificationRequest] = modification_request(authorization, options)
post[:modificationRequest][:modificationAmount] = amount_hash(money, options[:currency])
-
+
commit('Payment.capture', post)
end
def refund(money, authorization, options = {})
requires!(options, :order_id)
post = {}
post[:modificationRequest] = modification_request(authorization, options)
post[:modificationRequest][:modificationAmount] = amount_hash(money, options[:currency])
-
+
commit('Payment.refund', post)
end
def void(identification, options = {})
requires!(options, :order_id)
post = {}
post[:modificationRequest] = modification_request(identification, options)
commit('Payment.cancel', post)
+ end
+
+ def verify(creditcard, options = {})
+ authorize(0, creditcard, options)
end
private
def commit(action, post)