storekit-rs 0.3.2

Safe Rust bindings for Apple's StoreKit framework — in-app purchases and transaction streams on macOS
Documentation
1
2
3
4
5
6
7
8
9
use storekit::Refund;

#[test]
fn refund_requests_surface_a_result_or_error() {
    match Refund::begin_for_transaction_id(0) {
        Ok(status) => assert!(!status.as_str().is_empty()),
        Err(error) => assert!(!error.to_string().is_empty()),
    }
}