# threeypay-rust-sdk **Repository Path**: threeypay/threeypay-rust-sdk ## Basic Information - **Project Name**: threeypay-rust-sdk - **Description**: 3YPay(汇联支付)官方 Rust SDK:统一支付、查询、退款、转账、分账 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-23 - **Last Updated**: 2026-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ThreeYPay Rust SDK [![Crates.io](https://img.shields.io/crates/v/threeypay-sdk.svg)](https://crates.io/crates/threeypay-sdk) [![Documentation](https://docs.rs/threeypay-sdk/badge.svg)](https://docs.rs/threeypay-sdk) [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ## 安装 ```toml [dependencies] threeypay-sdk = "1.1" ``` ## 快速开始 ```rust use threeypay_sdk::ThreeYPay; #[tokio::main] async fn main() -> Result<(), Box> { let pay = ThreeYPay::new(app_id, private_key, platform_public_key, true)?; let result = pay.payment() .alipay(&PaymentRequest { mch_order_no: format!("ORDER_{}", timestamp()), order_amount: 0.01, subject: "测试商品".to_string(), ..Default::default() }) .await?; println!("{:?}", result); Ok(()) } ``` ## License MIT