Current location - Quotes Website - Signature design - Android Access to WeChat Pay-1 Error Code Pit Tour
Android Access to WeChat Pay-1 Error Code Pit Tour
Wechat payment documents are really great! Shaolin kungfu is really good!

Never guess what the-1 error code is.

By the way, introduce the signature file:

debug.keystore:

In Android Stduio, a signature file, debug.keystore, is built into the system by default, which is used for our default App signature under debug.

Version. keystore:

Generated by the user himself.

Get signature information:

Open the computer terminal and enter the following command:

You can see the MD5, sha 1 and sha256 values of the signature information. What wechat payment needs is a lowercase version of MD5 with colon removed. Take this machine as an example: 7a1ec4f306ab66ad869251f 91B9c341.

You can also type commands in the terminal of the tool window at the bottom of Android Studio.

Declaration configuration of WXPayEntryActivity in manifest file AndroidManifest.xml:

ErrorCode- 1: wrong signature, which is the third signature. Of course, APPID failed, which is different from the one returned by APPID registration. This is something in the "WeChat Open Platform".