Skip to content
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

鸿蒙 next 调用支付宝 web 支付,支付成功,但是结果返回失败 #5180

Open
wl386123298 opened this issue Oct 9, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@wl386123298
Copy link

HBuiler 版本为4.29
支付代码如下:

uni.requestPayment({
      provider: 'alipay',
      orderInfo: orderInfo,
      success: (res) => {
        var rawdata = JSON.parse(res.rawdata);
        showToast("支付成功")
        getVipCardInfo()
        console.log("支付成功", JSON.stringify(rawdata));
      },
      fail: (error) => {
        console.log('支付失败:' , JSON.stringify(error));
      },
      complete: () => { }
    })
  })

结果为:支付已经成功,结果返回

{"errMsg":"requestPayment:fail Other payment errors."}
@Wangyaqi
Copy link
Contributor

Wangyaqi commented Oct 9, 2024

感谢反馈,此问题已确认为Bug,会在下个alpha发布时修复

@Wangyaqi Wangyaqi added the bug Something isn't working label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants