1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

[付款] pay.go 增加 GetTransfer 方法 (#400)

This commit is contained in:
faith
2021-05-28 09:39:32 +08:00
committed by GitHub
parent c95b844c83
commit 0e8fc3f88b

View File

@@ -5,6 +5,7 @@ import (
"github.com/silenceper/wechat/v2/pay/notify"
"github.com/silenceper/wechat/v2/pay/order"
"github.com/silenceper/wechat/v2/pay/refund"
"github.com/silenceper/wechat/v2/pay/transfer"
)
//Pay 微信支付相关API
@@ -31,3 +32,8 @@ func (pay *Pay) GetNotify() *notify.Notify {
func (pay *Pay) GetRefund() *refund.Refund {
return refund.NewRefund(pay.cfg)
}
// GetTransfer 付款
func (pay *Pay) GetTransfer() *transfer.Transfer {
return transfer.NewTransfer(pay.cfg)
}