Skip to content

Instantly share code, notes, and snippets.

@huoxito
Created May 20, 2014 13:30
Show Gist options
  • Save huoxito/6f5f24cc1826975fc242 to your computer and use it in GitHub Desktop.
Save huoxito/6f5f24cc1826975fc242 to your computer and use it in GitHub Desktop.
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