pay

package
v0.0.0-...-5652a87 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseOrder

func CloseOrder(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

关闭订单.

func CopyBuffer

func CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error)

CopyBuffer is identical to Copy except that it stages through the provided buffer (if one is required) rather than allocating a temporary one. If buf is nil, one is allocated; otherwise if it has zero length, CopyBuffer panics.

func DownloadBill

func DownloadBill(filepath string, req map[string]string, httpClient *http.Client) (written int64, err error)

下载对账单到到文件.

func DownloadBillToWriter

func DownloadBillToWriter(writer io.Writer, req map[string]string, httpClient *http.Client) (written int64, err error)

下载对账单到 io.Writer.

func MicroPay

func MicroPay(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

提交刷卡支付.

func OrderQuery

func OrderQuery(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

查询订单.

func Refund

func Refund(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

申请退款.

NOTE: 请求需要双向证书.

func RefundQuery

func RefundQuery(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

查询退款.

func Reverse

func Reverse(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

撤销订单.

NOTE: 请求需要双向证书.

func UnifiedOrder

func UnifiedOrder(pxy *mch.Proxy, req map[string]string) (resp map[string]string, err error)

统一下单.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL