All Projects → slogsdon → stripe-elixir

slogsdon / stripe-elixir

Licence: MIT license
No description, website, or topics provided.

Programming Languages

elixir
2628 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].