Created
May 20, 2014 13:30
-
-
Save huoxito/6f5f24cc1826975fc242 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Spree | |
Gateway::AdyenPaymentEncrypted.class_eval do | |
def require_3d_secure?(payment) | |
if payment.order && payment.order.bill_address.city == "Bethesda" | |
false | |
else | |
true | |
end | |
end | |
def require_one_click_payment?(source, shopper) | |
# if shopper[:billing_address][:city] == "Washington" | |
false | |
# else | |
# false | |
# end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment