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

用 nebPay.queryPayInfo() 查询交易结果,总是得到 "payId *** does not exist" 是怎么回事? #1

Open
cssmagic opened this issue Jun 10, 2018 · 2 comments
Labels

Comments

@cssmagic
Copy link
Member

cssmagic commented Jun 10, 2018

有几种可能:

  • 代码写错了,接口打到了错误的服务器。比如向主网注册流水号,然后向测试网查询。不过这种情况一般不太可能发生。

  • 服务器不稳定,即 nebPay 向服务器注册流水号失败,自然也无法向服务器查询出结果。这种情况偶尔会遇到。

  • 有网友说是 nebPay 的 bug,拉最新代码自己 build 一下就行了。

@cssmagic
Copy link
Member Author

cssmagic commented Jun 10, 2018

  • 有网友说是 nebPay 的 bug,拉最新代码自己 build 一下就行了。

网友 “Lucky胡军” 亲测有效。

此问题似乎从 nebPay v0.1 开始就已经修复了。大家可以从 npm 安装 nebPay:

npm install nebpay.js

@cssmagic cssmagic added the FAQ label Jun 12, 2018
@cssmagic
Copy link
Member Author

cssmagic commented Sep 4, 2018

  • 服务器不稳定……

钱包扩展从 v0.1.4 开始,在向服务器注册流水号时,增加了失败重试的功能。如果仍然失败,则钱包扩展会向 nebPay 返回错误信息。

在此情况下,应用只能通过 txHash 查询交易结果了。而在移动网页中,由于拿不到 txHash,则只能干瞪眼了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant