pay 0.0.1-alpha.1

Payment related SDK supports payment with cryptocurrencies, including Bitcoin, Solona, Kaspa, etc., as well as legal currency payment with commercial companies, such as Alipay Pay, wechat Pay, and PayPal.
Documentation
use std::collections::HashMap;

use openssl::{
    pkey::{PKey, Private, Public},
    rsa::Rsa,
};

pub struct WeChatPay {
    pub mchid: String,
    pub serial: String,
    pub private_key: Rsa<Private>,
    pub certs: HashMap<String, PKey<Public>>,
}

impl WeChatPay {
    pub fn new(
        mchid: String,
        serial: String,
        private_key: Rsa<Private>,
        certs: HashMap<String, PKey<Public>>,
    ) -> Self {
        Self {
            mchid,
            serial,
            private_key,
            certs,
        }
    }
}

#[derive(Debug)]
pub struct Amount {
    pub total: i32,
    pub currency: String,
}