~singpolyma/jmp-pay

061d465c6d67222e41c168d75e144e13aa071494 — Stephen Paul Weber 7 days ago 85ad44c
Allow bypassing antifraud for a customer

Support will need this
1 files changed, 2 insertions(+), 0 deletions(-)

M config.ru
M config.ru => config.ru +2 -0
@@ 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 &&