更新小程序和管理后台配置,将 API 地址切换为生产环境。新增撤回打款功能,允许用户在特定状态下撤回打款请求,并优化相关页面交互。更新文档以反映新的流程图,确保用户体验一致性。
This commit is contained in:
@@ -213,6 +213,17 @@ func InitiateTransferByFundApp(params FundAppTransferParams) (*FundAppTransferRe
|
||||
return result, nil
|
||||
}
|
||||
|
||||
// CancelTransferByOutBill 撤销转账(用户确认收款前,商户可主动撤回)
|
||||
// 接口:POST /v3/fund-app/mch-transfer/transfer-bills/out-bill-no/{out_bill_no}/cancel
|
||||
func CancelTransferByOutBill(outBillNo string) error {
|
||||
if paymentApp == nil || paymentApp.FundApp == nil {
|
||||
return fmt.Errorf("支付/转账未初始化")
|
||||
}
|
||||
ctx := context.Background()
|
||||
_, err := paymentApp.FundApp.Cancel(ctx, outBillNo)
|
||||
return err
|
||||
}
|
||||
|
||||
// QueryTransferByOutBill 按商户单号查询单笔转账结果(FundApp 接口,用于 sync)
|
||||
func QueryTransferByOutBill(outBillNo string) (state, transferBillNo, failReason string, err error) {
|
||||
if paymentApp == nil || paymentApp.FundApp == nil {
|
||||
|
||||
Reference in New Issue
Block a user