lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.49.0 vs lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.50.0
- old
+ new
@@ -136,10 +136,17 @@
post = {}
add_token(post, token)
commit(:unstore, post)
end
+ def verify(credit_card, options={})
+ MultiResponse.run(:use_first_response) do |r|
+ r.process { authorize(100, credit_card, options) }
+ r.process(:ignore_result) { void(r.authorization, options) }
+ end
+ end
+
private
def add_reference(post, identification)
order_id, transaction_id, authorization, security_key = identification.split(';')
add_pair(post, :VendorTxCode, order_id)
@@ -388,6 +395,5 @@
end
end
end
end
-