1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00
fab-manager/lib/pay_zen/helper.rb
2021-04-07 17:17:17 +02:00

20 lines
503 B
Ruby

# frozen_string_literal: true
# PayZen payement gateway
module PayZen; end
## Provides various methods around the PayZen payment gateway
class PayZen::Helper
class << self
def enabled?
return false unless Setting.get('payment_gateway') == 'payzen'
res = true
%w[payzen_username payzen_password payzen_endpoint payzen_public_key payzen_hmac payzen_currency].each do |pz_setting|
res = false unless Setting.get(pz_setting).present?
end
res
end
end
end