Crates.io | libstripe |
lib.rs | libstripe |
version | 0.5.9 |
source | src |
created_at | 2017-08-20 23:30:26.758207 |
updated_at | 2019-06-14 14:23:19.087968 |
description | Stripe library for rust. |
homepage | |
repository | https://github.com/bundleofbytes/libstripe |
max_upload_size | |
id | 28366 |
size | 344,198 |
Stripe library for rust.
Note: Everything is subject to change but everything should be stable to use.
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);
}