lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.114.0 vs lib/active_merchant/billing/gateways/sage_pay.rb in activemerchant-1.116.0
- old
+ new
@@ -160,11 +160,11 @@
post = {}
add_token(post, token)
commit(:unstore, post)
end
- def verify(credit_card, options={})
+ 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
@@ -351,11 +351,10 @@
authorization: authorization_from(response, parameters, action),
avs_result: {
street_match: AVS_CODE[response['AddressResult']],
postal_match: AVS_CODE[response['PostCodeResult']]
},
- cvv_result: CVV_CODE[response['CV2Result']]
- )
+ cvv_result: CVV_CODE[response['CV2Result']])
end
def authorization_from(response, params, action)
case action
when :store