Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.
/ tiger Public archive

An elixir library for talking to Stripe

Notifications You must be signed in to change notification settings

htdc/tiger

Repository files navigation

Tiger

Tiger

Elixir client for interacting with Stripe

Installation

def deps do
  [
    {:tiger, "~> 0.1.0"}
  ]
end

Configuration

Configuration is done per request

config = %Tiger.Config{api_key: "my secret key"}
client = Tiger.Client.new(config)

Usage

{:ok, %Tesla.Env{body: response}} = Tiger.Balance.get(client)

IO.inspect(response)

%Tiger.Structs.Balance{
  available: [%{amount: 103007, currency: "aud", source_types: %{card: 103007}}],
  connect_reserved: [%{amount: 0, currency: "aud"}],
  instant_available: nil,
  issuing: nil,
  livemode: false,
  object: "balance",
  pending: [%{amount: -6, currency: "aud", source_types: %{card: -6}}]
}

Testing

Please see the test folder for examples of how you can write tests when using Tiger.

About

An elixir library for talking to Stripe

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published