WechatPay v0.7.0 WechatPay.App View Source

The App payment method.

Official document

Link to this section Summary

Functions

Close the order

Generate pay request info, which is required for the App SDK

Query the order

Query the refund

Request to refund

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 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

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