Allow bypassing antifraud for a customer

Stephen Paul Weber created

Support will need this

Change summary

config.ru | 2 ++
1 file changed, 2 insertions(+)

Detailed changes

config.ru 🔗

@@ -117,6 +117,8 @@ class CreditCardGateway
 	end
 
 	def antifraud
+		return if REDIS.exists?("jmp_antifraud_bypass-#{customer_id}")
+
 		REDIS.mget(@antifraud.map { |k| "jmp_antifraud-#{k}" }).find do |anti|
 			anti.to_i > 2
 		end &&