Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Latest commit

 

History

History
executable file
·
34 lines (23 loc) · 922 Bytes

README.md

File metadata and controls

executable file
·
34 lines (23 loc) · 922 Bytes

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("[email protected]");
    param.description = Some("Example account");

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

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

}