File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
node-pkgs/pay-gateway/ltzf Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @ethan-utils/pay-gateway " : minor
3+ ---
4+
5+ 新增 jump_h5 支付的 quitUrl 可选传参
Original file line number Diff line number Diff line change @@ -504,7 +504,7 @@ export async function h5JumpPay(
504504 const mch_id = ltzfConfig . mch_id ;
505505 const notify_url = params . notify_url || ltzfConfig . notifyUrl ;
506506 const developer_appid = ltzfConfig . developerAppid ;
507- const quit_url = undefined ;
507+ const quit_url = params . quit_url ;
508508 const return_url = params . return_url || ltzfConfig . returnUrl ;
509509 const timestamp = Math . floor ( Date . now ( ) / 1000 ) . toString ( ) ;
510510 const filteredParams = filterSignParams (
Original file line number Diff line number Diff line change @@ -352,12 +352,14 @@ declare global {
352352 */
353353 export type H5JumpPayInput = Omit <
354354 H5JumpPay ,
355- "mch_id" | "sign" | "quit_url" | " developer_appid"
355+ "mch_id" | "sign" | "developer_appid"
356356 > & {
357357 /** 支付通知地址,可选,不传则使用配置中的默认值 */
358358 notify_url ?: string ;
359359 /** 回跳地址,可选,不传则使用配置中的默认值 */
360360 return_url ?: string ;
361+ /** 取消支付跳转地址,可选 */
362+ quit_url ?: string ;
361363 } ;
362364 /**
363365 * 公众号支付业务入参类型
You can’t perform that action at this time.
0 commit comments