How to debug testing requestPayment()?

发布于 7 年前作者 hejing19701 次浏览最后编辑 7 年前来自 ask

Is there a way to test requestPayment() api without actually deducting money? I mean testing in debug environment.

Please let me know how to do it. Thank you

5 回复
xieyang
xieyang1 楼6 年前

必须扣钱

mengyang
mengyang2 楼6 年前

Hmm…Do you have freestyle?

gangdeng
gangdeng3 楼6 年前

Thanks for quick reply 假樊家豪 ! Actually I didn’t try it yet, but soon. I think your approach is the best to test payment API here.

ichang
ichang4 楼6 年前

What is freestyle? Do you mean we can pay for something with 0 amount (i.e. 0 RMB) ? Is that possible?

guiying27
guiying275 楼5 年前

I think the best way is that you could set the pay amount to be 1(which means 1 cent). Do you have any difficulty on making payment?