IPay88.Config (ipay88 v0.1.0)

Utility that handles interaction with the application's configuration

Link to this section Summary

Functions

In config.exs, use a string, a function or a tuple

In config.exs your implicit or expicit configuration is

In config.exs, use a string, a function or a tuple

In config.exs, use a string, a function or a tuple

In config.exs, use a string, a function or a tuple

Link to this section Functions

In config.exs, use a string, a function or a tuple:

config :ipay88, backend_url: System.get_env("IPAY88_BACKEND_URL")

or:

config :ipay88, backend_url: {:system, "IPAY88_BACKEND_URL"}

or:

config :ipay88, backend_url: {MyApp.Config, :ipay88_backend_url, []}

Specs

json_library() :: module()

In config.exs your implicit or expicit configuration is:

config ex_:crowdin, json_library: Poison # defaults to Jason but can be configured to Poison
Link to this function

merchant_code()

In config.exs, use a string, a function or a tuple:

config :ipay88, merchant_code: System.get_env("IPAY88_MERCHANT_CODE")

or:

config :ipay88, merchant_code: {:system, "IPAY88_MERCHANT_CODE"}

or:

config :ipay88, merchant_code: {MyApp.Config, :ipay88_merchant_code, []}

In config.exs, use a string, a function or a tuple:

config :ipay88, merchant_key: System.get_env("IPAY88_MERCHANT_KEY")

or:

config :ipay88, merchant_key: {:system, "IPAY88_MERCHANT_KEY"}

or:

config :ipay88, merchant_key: {MyApp.Config, :ipay88_merchant_key, []}
Link to this function

resolve(key, default \\ nil)

Specs

resolve(atom(), any()) :: any()

In config.exs, use a string, a function or a tuple:

config :ipay88, response_url: System.get_env("IPAY88_RESPONSE_URL")

or:

config :ipay88, response_url: {:system, "IPAY88_RESPONSE_URL"}

or:

config :ipay88, response_url: {MyApp.Config, :ipay88_response_url, []}