WechatPay v0.7.0 WechatPay.Native View Source

The Native payment method.

Official document

Link to this section Summary

Functions

Close the order

Query the order

Query the refund

Request to refund

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

Official document

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

Official document

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

Official document

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

Official document

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

Official document

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

Official document

Link to this function report(attrs, config) View Source
report(map(), WechatPay.Config.t()) ::
  {:ok, map()} | {:error, WechatPay.Error.t() | HTTPoison.Error.t()}

Report

Official document

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

Official document