use Alipay Global without any pain.
```shell
[dependencies] alipay-global = "0.1" ```
```rust use alipayglobal::pay::cashierpayment; use alipay_global::models::*; use std::path::PathBuf;
// load client id and private pem key from environment for test purpose let clientid = std::env::var("CLIENTID").expect("Missing CLIENTID environment variable"); let privatekeypempath = std::env::var("PEMPATH").expect("Missing PEMPATH environment variable");
// Client secret object contains all the information regarding your Alipay Global Account let secret = AlipayClientSecret {clientid: String::from(clientid), sandbox: true, privatekeypem: None, privatekeypemfile: Some(Box::new(PathBuf::from(&privatekeypempath))), };
// CashierPayment Object contains order info let p = CashierPaymentSimple { paymentrequestid: uuid::Uuid::newv4().tostring(), currency: String::from("USD"), amount: 100, redicturl: String::from("https://google.com"), notifiyurl: String::from("https://google.com"), referenceorderid: None, orderdescription: String::from("orderdescription"), terminal_type: Some(TerminalType::WEB), };
// Call the API let r = cashier_payment(&secret, &p); ```