Sha256: 3da56619339e51c0eb68187ef098699c9a3b76068c00fe4665a733a9960af13b
Contents?: true
Size: 1.03 KB
Versions: 7
Compression:
Stored size: 1.03 KB
Contents
# frozen_string_literal: true solidus_bolt_configuration = SolidusBolt::BoltConfiguration.fetch solidus_bolt_configuration.environment = ENV.fetch('BOLT_ENVIRONMENT', 'sandbox') solidus_bolt_configuration.api_key = ENV['BOLT_API_KEY'] solidus_bolt_configuration.signing_secret = ENV['BOLT_SIGNING_SECRET'] solidus_bolt_configuration.publishable_key = ENV['BOLT_PUBLISHABLE_KEY'] solidus_bolt_configuration.save Spree::AuthenticationMethod.find_or_create_by(provider: :bolt) do |authentication_method| authentication_method.environment = "development" authentication_method.provider = "bolt" authentication_method.api_key = SolidusBolt::BoltConfiguration.fetch.publishable_key authentication_method.api_secret = SolidusBolt::BoltConfiguration.fetch.api_key authentication_method.active = true end if ENV['BOLT_API_KEY'] && ENV['BOLT_SIGNING_SECRET'] && ENV['BOLT_PUBLISHABLE_KEY'] SolidusBolt::PaymentMethod.create!( type: 'SolidusBolt::PaymentMethod', name: 'Bolt', preference_source: 'bolt_credentials', active: true ) end
Version data entries
7 entries across 7 versions & 1 rubygems