Sha256: 29d4107852ee1f4b1118a4a28b19edd4b13b8426fc556417698a9c63efe8a3d9

Contents?: true

Size: 935 Bytes

Versions: 2

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

SolidusAfterpay.configure do |config|
  config.use_solidus_api = false
  # A class that extend SolidusAfterpay::BaseService, respond to .call, accepting a Spree::Order
  # and return an Afterpay shipping rate object (check the Afterpay documentation)
  # config.shipping_rate_builder_service_class = 'SolidusAfterpay::ShippingRateBuilderService'

  # A class that extend SolidusAfterpay::BaseService, respond to .call, accepting a Spree::Order
  # and return true or false
  # config.update_order_attributes_service_class = 'SolidusAfterpay::UpdateOrderAttributesService'

  # There is a cache for retrieving the minimum amount, maximum amount and the currency from Afterpay
  # the default value us set to 1.day, this is also recommended by Afterpay itself. If you prefer a shorter
  # or longer time simply uncomment config.cache_expiry and add the preferred value.
  # config.cache_expiry = 1.day
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
solidus_afterpay-0.3.0 lib/generators/solidus_afterpay/install/templates/initializer.rb
solidus_afterpay-0.2.0 lib/generators/solidus_afterpay/install/templates/initializer.rb