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
Link to this function
backend_url()
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, []}
Link to this function
json_library()
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, []}
Link to this function
merchant_key()
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
Link to this function
response_url()
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, []}