Skip to content

belloq/checkout_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Checkout for Elixir

A Checkout.com library for Elixir.

Documentation

Installation

Add checkout_elixir to your list of dependencies in mix.exs:

def deps do
  [
    {:checkout_elixir, "~> 1.0.0"}
  ]
end

Configuration

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