View Source Paystack (Paystack v0.5.2)
Paystack
A library for working with Paystack in Elixir
Installation
Add paystack to your dependencies list in mix.exs
{:paystack, "~> 0.5.2"}Then run mix deps.get
Configuration
Add the following configuration to your runtime.exs or config.exs file. The runtime file is preferred if your secret key is injected into your environment at runtime.
config :paystack, secret_key: System.get_env("PAYSTACK_SECRET_KEY")Your environment variable does not have to be PAYSTACK_SECRET_KEY, as the package only depends on the config key.