Sha256: 7f7b1d89ec152c609233903b0854b6162d03107396b8d153d486608e70183dfc

Contents?: true

Size: 982 Bytes

Versions: 7

Compression:

Stored size: 982 Bytes

Contents

Workarea::Configuration.define_fields do
  fieldset 'PayPal', namespaced: false do
    # PayPal credentials can be configured via environment variables:
    #   WORKAREA_PAYPAL_CLIENT_ID
    #   WORKAREA_PAYPAL_CLIENT_SECRET
    #
    # via rails credentials:
    #   paypal:
    #     client_id: YOUR_CLIENT_ID
    #     client_secret: YOUR_CLIENT_SECRET
    #
    # Or through the workarea admin configuration. Setting credentials through
    # the configuration allows for dyanmically changing credentials if, for
    # example, you are using the multi-site plugin and wish to use different
    # PayPal accounts for some or all sites.
    #
    field 'Client ID',
      type: :string,
      id: 'paypal_client_id',
      description: 'Your Paypal Merchant Account Application Client ID'
    field 'Client Secret',
      type: :string,
      id: 'paypal_client_secret',
      encrypted: true,
      description: 'Your Paypal Merchant Account Application Client Secret'
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
workarea-paypal-3.0.6 config/initializers/fields.rb
workarea-paypal-3.0.5 config/initializers/fields.rb
workarea-paypal-3.0.4 config/initializers/fields.rb
workarea-paypal-3.0.3 config/initializers/fields.rb
workarea-paypal-3.0.2 config/initializers/fields.rb
workarea-paypal-3.0.1 config/initializers/fields.rb
workarea-paypal-3.0.0 config/initializers/fields.rb