Parcourir la source

add GetRefund (#286)

silenceper il y a 6 ans
Parent
commit
7fe7e21cb2
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      pay/pay.go

+ 6 - 0
pay/pay.go

@@ -4,6 +4,7 @@ import (
 	"github.com/silenceper/wechat/v2/pay/config"
 	"github.com/silenceper/wechat/v2/pay/notify"
 	"github.com/silenceper/wechat/v2/pay/order"
+	"github.com/silenceper/wechat/v2/pay/refund"
 )
 
 //Pay 微信支付相关API
@@ -25,3 +26,8 @@ func (pay *Pay) GetOrder() *order.Order {
 func (pay *Pay) GetNotify() *notify.Notify {
 	return notify.NewNotify(pay.cfg)
 }
+
+// GetRefund  退款
+func (pay *Pay) GetRefund() *refund.Refund {
+	return refund.NewRefund(pay.cfg)
+}