WechatPay v0.7.0 WechatPay.Native View Source
The Native payment method.
Link to this section Summary
Functions
Close the order
Download bill
Place an order
Query the order
Query the refund
Request to refund
Report
Shorten the URL to reduce the QR image size
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
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
Link to this function
shorten_url(url, config)
View Source
shorten_url(String.t(), WechatPay.Config.t()) :: {:ok, String.t()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}
Shorten the URL to reduce the QR image size