Sha256: 33b0ea823d85e928ee13984e173239f8e8dd7095776905155e3d0c10ad7a2878

Contents?: true

Size: 1.19 KB

Versions: 1

Compression:

Stored size: 1.19 KB

Contents

Workarea::Configuration.define_fields do
  fieldset 'Affirm', namespaced: true do
    field 'Enabled',
      type: :boolean,
      description: 'Whether to enable Affirm functionality throughout the site',
      default: true

    field 'Public Key',
      type: :string,
      description: 'Public API key. Found in the Affirm API Keys admin section.',
      allow_blank: true,
      encrypted: false

    field 'Private Key',
      type: :string,
      description: 'Private API key used for server side calls. Found in the Affirm API Keys admin section.',
      allow_blank: true,
      encrypted: true

    field 'Use Production Environment',
      type: :boolean,
      description: 'Uses the production API and Javascript SDK URLS.',
      default: false

    field 'Merchant Name',
      type: :string,
      description: 'Name of merchant that display in Affirm checkout.',
      allow_blank: true,
      encrypted: false

    field 'Minimum Order Value',
      type: :float,
      description: 'Minimum order total required for Affirm. Affirm will not show as a payment option if this threshold is not met. Leave this field blank for no minimum.',
      allow_blank: true,
      encrypted: false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-affirm-1.0.0 config/initializers/configuration.rb