A Checkout.com library for Elixir.
Add checkout_elixir
to your list of dependencies in mix.exs
:
def deps do
[
{:checkout_elixir, "~> 1.0.0"}
]
end
To make API calls, it's necessary to configure your Checkout.com keys.
Add to your config:
config :checkout_elixir,
secret_key: "sk_UUID",
public_key: "pk_UUID"
or add to your environment:
export CHECKOUT_SECRET_KEY=sk_UUID
export CHECKOUT_PUBLIC_KEY=pk_UUID
If you want to use it in sandbox mode:
config :checkout_elixir, sandbox: true