We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
现在碰到一个在 testnet 遇见的 bug : Nasa.NebPay 的原型中的 pay 和 queryPayInfo 等方法没有测试网的配置选项,在测试的时候不是很方便,希望和官方的文档保持一致.
我现在的解决方法是: 自己定义callback的 url ,区分开是在测试网还是在主网,官方是通过配置 debug 选项来区分的.
let nbp = new Nasa.NebPay(); window.NasaUrl = Nasa.env.get() !== "mainnet" ? "https://pay.nebulas.io/api/pay" : "https://pay.nebulas.io/api/mainnet/pay"; nbp.pay("n1MikYAYZTB9MRaVZy4Bg47RMxABiYLiET7", "0.01", { goods: { name: "打赏用户", desc: "打赏用户0.01NAS" }, callback: NasaUrl });
The text was updated successfully, but these errors were encountered:
毕竟是转账, 假如本地测试环境给别人转账用的是主网配置, 转账成功之后会很悲催~
Sorry, something went wrong.
好的,收到。稍后找你细聊。
明白你意思了。nebPay 从 v0.2 开始增加了 debug 选项。
debug
稍后 Nasa.js 会升级内置的 nebPay 版本(从 v0.1.0 到 v0.2.x)。
谢谢反馈。不过我就不把这视为 bug 了哈。
0.5 NAS 奖金已送上! 😉
No branches or pull requests
现在碰到一个在 testnet 遇见的 bug :
Nasa.NebPay 的原型中的 pay 和 queryPayInfo 等方法没有测试网的配置选项,在测试的时候不是很方便,希望和官方的文档保持一致.
我现在的解决方法是:
自己定义callback的 url ,区分开是在测试网还是在主网,官方是通过配置 debug 选项来区分的.
The text was updated successfully, but these errors were encountered: