Skip to content

fix(mp-xhs): 修复 API requestPayment 调用不生效的 Bug (question/194812) #5673

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/uni-mp-xhs/src/api/protocols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ export const showActionSheet = {
},
}

export const requestPayment = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

补充 initProvider 保证用户的一套套代码可以运行在多端,代码不变,有可能用户会根据 provider 的返回值做判断

name: 'requestOrderPayment',
}

export const navigateTo = _navigateTo()
Loading