Sha256: a6a2a93d1b20684e2868a3c29c7a8693666f3603ab348924f42ba5efac9ec10a
Contents?: true
Size: 1.23 KB
Versions: 2
Compression:
Stored size: 1.23 KB
Contents
require 'workarea' require 'workarea/storefront' require 'workarea/admin' require 'workarea/klarna/gateway' require 'workarea/klarna/gateway/request' require 'workarea/klarna/gateway/response' require 'workarea/klarna/gateway/order' require 'workarea/klarna/gateway/create_session_request' require 'workarea/klarna/gateway/update_session_request' require 'workarea/klarna/gateway/place_order_request' require 'workarea/klarna/gateway/capture_request' require 'workarea/klarna/gateway/refund_request' require 'workarea/klarna/gateway/cancel_request' require 'workarea/klarna/gateway/release_request' require 'workarea/klarna/bogus_gateway' module Workarea module Klarna class << self def gateway return Klarna::BogusGateway.new unless Workarea.config.load_klarna Klarna::Gateway.new end def on_site_messaging_client_id ENV["WORKAREA_KLARNA_ON_SITE_MESSAGING_CLIENT_ID"].presence || Rails.application.credentials.klarna.try(:[], :on_site_messaging_client_id) || Workarea.config.klarna_on_site_messaging_client_id end def on_site_messaging? on_site_messaging_client_id.present? end end end end require 'workarea/klarna/engine' require 'workarea/klarna/version'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
workarea-klarna-1.1.0 | lib/workarea/klarna.rb |
workarea-klarna-1.1.0.beta1 | lib/workarea/klarna.rb |