Home > Mobile >  Android WebView call WeChat H5 payment issues
Android WebView call WeChat H5 payment issues

Time:11-27

Question is this: I am using "front end game engines - egrets" made a H5 game, and then use the android webview to load, then at the time of docking WeChat payment we didn't use WeChat open platform API (why not use don't have to explain), we found a way is that online

Results can really be up WeChat pay

The other two problems now,
The first problem is to jump to WeChat pay comes back [Activity] [onCreate] was carried out once, so this is a question
The second problem is that after WeChat H5 payment need a web page as a callback for pay for success, but if in the current webview jump directly, will be off my game, so the problem is
I thought of A way is used in open WeChat pay link window. Open to open another window, and then pay after the callback should page will be loaded in the window, and then in the callback page. Notice the window in the window before the game close off A callback window on the page, but not the idea I have A place, and how is in the same WebView window, A window to send A message to B this is my current thinking and problem,
Of course the great god the realization method, if any hope can instruct me,

CodePudding user response:

Why not use don't have to explain, not silver three hundred and twenty ah, here it is improper operation, WeChat upgrade one day, all the failure

CodePudding user response:

The first problem to solve, start with singleTask mode
  • Related