Alipay Global
use Alipay Global without any pain.
Getting Started
# add this line to your Cargo.toml
[dependencies]
alipay-global = "0.1"
Example
use cashier_payment;
use *;
use PathBuf;
// load client id and private pem key from environment for test purpose
let client_id = var.expect;
let private_key_pem_path = var.expect;
// Client secret object contains all the information regarding your Alipay Global Account
let secret = AlipayClientSecret ;
// CashierPayment Object contains order info
let p = CashierPaymentSimple ;
// Call the API
let r = cashier_payment;