Class: KcppaymentsRails::Configuration
- Inherits:
-
Object
- Object
- KcppaymentsRails::Configuration
- Defined in:
- lib/kcppayments_rails/configuration.rb
Instance Attribute Summary collapse
-
#escrow ⇒ Object
KCP 표준결제 기본 설정 값들.
-
#gateway_url ⇒ Object
KCP 표준결제 기본 설정 값들.
-
#js_url ⇒ Object
KCP 표준결제 기본 설정 값들.
-
#site_cd ⇒ Object
KCP 표준결제 기본 설정 값들.
-
#site_key ⇒ Object
KCP 표준결제 기본 설정 값들.
-
#tax_free_amount_field ⇒ Object
KCP 표준결제 기본 설정 값들.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/kcppayments_rails/configuration.rb', line 8 def initialize @site_cd = ENV["KCP_SITE_CD"] @site_key = ENV["KCP_SITE_KEY"] @gateway_url = ENV["KCP_GATEWAY_URL"] || "https://testpaygw.kcp.co.kr" @js_url = ENV["KCP_JS_URL"] || "https://testpay.kcp.co.kr/plugin/payplus_web.jsp" # @target_url = if Rails.env.production? # 운영서버 # "https://spl.kcp.co.kr" # else # Rails.env.development? || Rails.env.staging? # 개발서버 또는 스테이징서버 # "https://stg-spl.kcp.co.kr" # end @escrow = false @tax_free_amount_field = :tax_free_amount end |
Instance Attribute Details
#escrow ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def escrow @escrow end |
#gateway_url ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def gateway_url @gateway_url end |
#js_url ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def js_url @js_url end |
#site_cd ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def site_cd @site_cd end |
#site_key ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def site_key @site_key end |
#tax_free_amount_field ⇒ Object
KCP 표준결제 기본 설정 값들
6 7 8 |
# File 'lib/kcppayments_rails/configuration.rb', line 6 def tax_free_amount_field @tax_free_amount_field end |