Stripe Build Status

Stripe API client for Elixir. Documentation

Installation

  1. Add stripe to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:stripe, "~> 0.4.2", hex: :stripe_elixir}]
end
```
  1. Ensure stripe is started before your application:
```elixir
def application do
  [applications: [:stripe]]
end
```
  1. Make sure your stripe secret_key is added to your config file:
```elixir
config :stripe, secret_key: YOUR_SECRET_KEY
```
  1. Alternatively, you can also set the secret key as an environment variable:
```elixir
STRIPE_SECRET_KEY=YOUR_SECRET_KEY
```

Basic Usage

This lib closely follows the official Ruby Client API.

Stripe.{RESOURCE}.createStripe.{RESOURCE}.retrieveStripe.{RESOURCE}.updateStripe.{RESOURCE}.list

Returns {:ok, RESPONSE_BODY} when the request is successful.

} tuples are returned when there is a request/api error See all error types at https://stripe.com/docs/api/ruby#errors