7 stable releases (6 major)

32.0.0 Dec 21, 2023
30.0.0 Nov 29, 2023
29.0.0 Nov 24, 2022
28.0.0 Nov 7, 2022
25.0.0 Oct 21, 2022

#86 in Finance

30 downloads per month

MIT license

2MB
40K SLoC

Stars Build Status Downloads Crates.io

Stripe client, generated from the OpenAPI spec.

Usage

use stripe::StripeClient;
use stripe::model::*;
#[tokio::main]
async fn main() {
    let client = StripeClient::from_env();
    let response = client.get_account().await.unwrap();
    println!("{:#?}", response);
}

This example loads configuration from environment variables, specifically:

  • STRIPE_SECRET_KEY

Installation

Add this to your Cargo.toml:

[dependencies]
stripe2 = ".."

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Dependencies

~11–24MB
~403K SLoC