libstripe

Crates.iolibstripe
lib.rslibstripe
version0.5.9
sourcesrc
created_at2017-08-20 23:30:26.758207
updated_at2019-06-14 14:23:19.087968
descriptionStripe library for rust.
homepage
repositoryhttps://github.com/bundleofbytes/libstripe
max_upload_size
id28366
size344,198
Darius Clark (dariusc93)

documentation

README

libstripe

Status Build Status

Stripe library for rust.

Note: Everything is subject to change but everything should be stable to use.

Example

use libstripe::Client;
use libstripe::resources::core::customer::{Customer, CustomerParam};

fn main() {
    let client = Client::new("sk_test_..............");

    let mut param = CustomerParam::default();

    param.email = Some("example@example.com");
    param.description = Some("Example account");

    let customer = match Customer::create(&client, param) {
        Ok(cust) => cust,
        Err(e) => panic!("{}", e)
    };

    println!("{:?}", customer);

}
Commit count: 71

cargo fmt