pay_pal v0.0.5 PayPal.Config

Documentation for PayPal.Config

Basically this is just for getting configuration values

Examples

iex(1)> PayPal.Config.get %{client_id: “CLIENT_ID”, client_secret: “CLIENT_SECRET”}

Link to this section Summary

Functions

Get the configuration object, this reads both the config file and system environment variables. Env vars are first priority, config second

Link to this section Functions

Link to this function get()
get() :: %{client_id: String.t(), client_secret: String.t()}

Get the configuration object, this reads both the config file and system environment variables. Env vars are first priority, config second.

Environment vars:

  • PAYPAL_CLIENT_ID
  • PAYPAL_CLIENT_SECRET

Example config.exs sample:

config :pay_pal, client_id: “CLIENT_ID”, client_secret: “CLIENT_SECRET”

Examples

iex(1)> PayPal.Config.get %{client_id: “CLIENT_ID”, client_secret: “CLIENT_SECRET”}