|
|
@@ -58,7 +58,7 @@ func AlipayPc(args map[string]string) (string, error) { |
|
|
|
if args["private_key"] == "" || args["app_id"] == "" { |
|
|
|
return "", errors.New("请在后台正确配置支付宝") |
|
|
|
} |
|
|
|
param, err := local_alipay.TradeAppPc(args["app_id"], args["private_key"], args["subject"], args["ord_id"], args["amount"], args["notify_url"], args["rsa"], args["pkcs"], paySet) |
|
|
|
param, err := local_alipay.TradeAppPc(args["app_id"], args["private_key"], args["subject"], args["ord_id"], args["amount"], args["notify_url"], args["rsa"], args["pkcs"], args["page_url"], paySet) |
|
|
|
if err != nil { |
|
|
|
fmt.Println("支付宝错误日志") |
|
|
|
fmt.Println(param) |
|
|
@@ -141,3 +141,8 @@ func WxAppRefund(params map[string]string) (*wechat.RefundResponse, gopay.BodyMa |
|
|
|
r, r1, err := local_wxpay.TradeAppRefund(client, params["subject"], params["transaction_id"], params["out_refund_no"], params["total_fee"], params["amount"], params["p12_str"], params["notify_url"]) |
|
|
|
return r, r1, err |
|
|
|
} |
|
|
|
func WxAppRefundQuery(params map[string]string) (*wechat.QueryRefundResponse, gopay.BodyMap, error) { |
|
|
|
client := local_wxpay.NewClient(params["pay_wx_appid"], params["pay_wx_mch_id"], params["pay_wx_api_key"], true) |
|
|
|
r, r1, err := local_wxpay.TradeAppRefundQuery(client, params["transaction_id"]) |
|
|
|
return r, r1, err |
|
|
|
} |