Sha256: 100c5a9ab185de7b74f7c48e393f0f31249dadd1948c50f4de7783863116ffa9

Contents?: true

Size: 1.33 KB

Versions: 29

Compression:

Stored size: 1.33 KB

Contents

DiscoApp::Engine.routes.default_url_options[:host] = ENV['DEFAULT_HOST']

DiscoApp.configure do |config|
  # Required configuration.
  config.app_name = ENV['SHOPIFY_APP_NAME']

  # Set a list of webhook topics to listen for.
  # See https://help.shopify.com/api/reference/webhook.
  config.webhook_topics = [:'orders/create', :'orders/paid', :'carts/create', :'carts/update']

  # Set the below if using an application proxy.
  config.app_proxy_prefix = ENV['SHOPIFY_APP_PROXY_PREFIX']

  # Set the below if providing a carrier service endpoint.
  # Note that if using a URL helper to set the endpoint, we use a lambda
  # function to ensure that the URL helper is only evaluated when we need it.
  config.carrier_service_callback_url = -> { Rails.application.routes.url_helpers.carrier_service_callback_url }

  # Set the below to create real charges.
  config.real_charges = ENV['SHOPIFY_REAL_CHARGES'] === 'true'

  # Optional configuration. These flags are only respected in the development
  # environment and will have no effect in production.
  config.skip_proxy_verification = ENV['SKIP_PROXY_VERIFICATION'] == 'true'
  config.skip_webhook_verification = ENV['SKIP_WEBHOOK_VERIFICATION'] == 'true'
  config.skip_carrier_request_verification = ENV['SKIP_CARRIER_REQUEST_VERIFICATION'] == 'true'
  config.skip_oauth = ENV['SKIP_OAUTH'] == 'true'
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release test/dummy/config/initializers/disco_app.rb
disco_app-0.10.5 test/dummy/config/initializers/disco_app.rb
disco_app-0.11.0 test/dummy/config/initializers/disco_app.rb
disco_app-0.11.1 test/dummy/config/initializers/disco_app.rb
disco_app-0.12.0 test/dummy/config/initializers/disco_app.rb
disco_app-0.12.1 test/dummy/config/initializers/disco_app.rb
disco_app-0.12.5 test/dummy/config/initializers/disco_app.rb
disco_app-0.12.6 test/dummy/config/initializers/disco_app.rb
disco_app-0.12.7 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.0 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.1 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.2 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.3 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.4 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.5 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.6 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.7 test/dummy/config/initializers/disco_app.rb
disco_app-0.13.8 test/dummy/config/initializers/disco_app.rb
disco_app-0.14.1 test/dummy/config/initializers/disco_app.rb
disco_app-0.14.2 test/dummy/config/initializers/disco_app.rb