PinElixir
An elixir client for PinPayments
Installation
Add pin_elixir to your list of dependencies in
mix.exs
:def deps do [{:pin_elixir, "~> 0.0.1"}] end
Ensure pin_elixir is started before your application:
def application do [applications: [:pin_elixir]] end
Add the appropriate credentials and endpoints to your config files such as
dev.exs
config :pin_elixir, api_key: System.get_env("MY_API_KEY") || "my_super_secret_key", pin_url: "test-api.pin.net.au/1"
- Profit