Mercadopago.Config (MercadopagoAPI v0.1.0)

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

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

@spec 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:

  • 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"}