stripe-rust 0.4.5

API bindings for the Stripe v1 HTTP API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate stripe;

use std::sync::Arc;
use std::thread;

#[test]
fn sync() {
    let client = Arc::new(stripe::Client::new("sk_key"));
    let clone1 = client.clone();
    let clone2 = client.clone();
    thread::spawn(move || {
        assert!(stripe::Customer::retrieve(&clone1, "").is_err());
    });
    thread::spawn(move || {
        assert!(stripe::Customer::retrieve(&clone2, "").is_err());
    });
}