No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
mix.exs
mix.lock

README.md

stripe-elixir

a Stripe wrapper for Elixir

Usage

Add the following to your dependencies in your mix file:

{ :stripe, github: "slogsdon/stripe-elixir" }
Note

stripe-elixir requires the STRIPE_SECRET_KEY environment variable set to a valid API key associated with your Stripe account.

iex> Stripe.start
:ok
iex> Stripe.InvoiceItems.list
[Stripe.InvoiceItem[id: "ii_103lSZ2eZvKYlo2C6Zz1aFHv", object: "invoiceitem",
  livemode: false, amount: 1000, currency: "usd",
  customer: "cus_3lPWbj9wX1KqP6", date: {{2014, 3, 30}, {3, 0, 11}},
  proration: false, description: "One-time setup fee", invoice: nil,
  metadata: [{}], subscription: nil],
 Stripe.InvoiceItem[id: "ii_103kXf2eZvKYlo2CkRlaXEN6", object: "invoiceitem",
  livemode: false, amount: 350, currency: "usd", customer: "cus_3kXfWSyHPMZOan",
  date: {{2014, 3, 27}, {16, 11, 35}}, proration: false, description: nil,
  invoice: "in_103kXf2eZvKYlo2CgUV8Vctw", metadata: [{}], subscription: nil],
  ...]

Reference

See Stripe's API docs.

Dependencies

License

See LICENSE