Stripe
Stripe API client for Elixir.
- Everything except for Relay features are complete and tested.
- Currently working on client connection retry logic/network error handling.
- Looking for more contributors/maintainers for this project, currently need help with documentation.
Installation
-
Add
stripeto your list of dependencies inmix.exs:
```elixir
def deps do
[{:stripe, "~> 0.1.0"}]
end
```-
Ensure
stripeis started before your application:
```elixir
def application do
[applications: [:stripe]]
end
```- Make sure your stripe secret_key is added to your config file:
```elixir
config :stripe, secret_key: YOUR_SECRET_KEY
```- 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 only returned when there is a network error