WechatPay v0.7.0 WechatPay.App View Source
The App payment method.
Link to this section Summary
Functions
Close the order
Download bill
Generate pay request info, which is required for the App SDK
Place an order
Query the order
Query the refund
Request to refund
Report
Link to this section Functions
Link to this function
close_order(attrs, config)
View Source
close_order(map(), WechatPay.Config.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Close the order
Link to this function
download_bill(attrs, config)
View Source
download_bill(map(), WechatPay.Config.t()) :: {:ok, String.t()} | {:error, HTTPoison.Error.t()}
Download bill
Link to this function
generate_pay_request(prepay_id, config)
View Source
generate_pay_request(String.t(), WechatPay.Config.t()) :: map()
Generate pay request info, which is required for the App SDK
Link to this function
place_order(attrs, config)
View Source
place_order(map(), WechatPay.Config.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Place an order
Link to this function
query_order(attrs, config)
View Source
query_order(map(), Configt.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Query the order
Link to this function
query_refund(attrs, config)
View Source
query_refund(map(), WechatPay.Config.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Query the refund
Link to this function
refund(attrs, config)
View Source
refund(map(), WechatPay.Config.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Request to refund
Link to this function
report(attrs, config)
View Source
report(map(), WechatPay.Config.t()) :: {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Report