Mercadopago.Config (MercadopagoAPI v0.2.1)
Documentation for Mercadopago.Config
Basically this is just for getting configuration values
examples
Examples
iex(1)> Mercadopago.Config.get
%{client_id: "MERCADOPAGO_CLIENT_ID", client_secret: "MERCADOPAGO_CLIENT_SECRET"}
Link to this section Summary
Link to this section Functions
Link to this function
get()
Get the configuration object, this reads both the config file and system environment variables. Env vars are first priority, config second.
Environment vars:
- MERCADOPAGO_CLIENT_ID
- MERCADOPAGO_CLIENT_SECRET
Example config.exs sample:
config :mercadopago_api,
client_id: "MERCADOPAGO_CLIENT_ID",
client_secret: "MERCADOPAGO_CLIENT_SECRET",
examples
Examples
iex(1)> Mercadopago.Config.get
%{client_id: "MERCADOPAGO_CLIENT_ID", client_secret: "MERCADOPAGO_CLIENT_SECRET"}