[][src]Struct wechatpay::WechatpayClient

pub struct WechatpayClient { /* fields omitted */ }

API Client

Methods

impl WechatpayClient[src]

pub fn new(
    appid: &str,
    mch_id: &str,
    api_key: &str,
    notify_url: &str,
    cert: &str
) -> WechatpayClient
[src]

pub fn pay(
    &self,
    params: BTreeMap<String, String>,
    trade_type: TradeType,
    retries: Option<u32>
) -> WechatpayResult
[src]

pub fn micro_pay(
    &self,
    params: BTreeMap<String, String>,
    retries: Option<u32>
) -> WechatpayResult
[src]

pub fn jsapi_pay(
    &self,
    params: BTreeMap<String, String>,
    retries: Option<u32>
) -> WechatpayResult
[src]

pub fn qrcode_pay(
    &self,
    params: BTreeMap<String, String>,
    retries: Option<u32>
) -> WechatpayResult
[src]

pub fn app_pay(
    &self,
    params: BTreeMap<String, String>,
    retries: Option<u32>
) -> WechatpayResult
[src]

pub fn query_order(&self, id: OrderIdentifier) -> WechatpayResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]