Skip to content

Commit ba29a5b

Browse files
committed
feat(pay-gateway): 新增 jump_h5 支付的 quitUrl 可选传参
1 parent e91dc34 commit ba29a5b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.changeset/moody-moments-cough.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@ethan-utils/pay-gateway": minor
3+
---
4+
5+
新增 jump_h5 支付的 quitUrl 可选传参

node-pkgs/pay-gateway/ltzf/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(

node-pkgs/pay-gateway/ltzf/types.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
* 公众号支付业务入参类型

0 commit comments

Comments
 (0)