18 releases

0.5.9 Jun 14, 2019
0.5.7 May 24, 2019
0.4.1 Dec 31, 2018
0.4.0 Nov 23, 2018
0.2.0 Oct 2, 2017

#221 in Finance

MIT/Apache

315KB
8K SLoC

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);

}

Dependencies

~21–29MB
~516K SLoC