How to use java to realize WeChat Pay's official account payment
0) {ipAddrStr + = ".";} ipAddrStr + = ipAddr [I] & 0xFF;} return ipAddrStr;}}
② constant class (set according to merchant information):
Public class WxPayConstants {/ / third-party user unique ID public static String APPID = ""; / / third-party user unique credential password public static String APP_SECRET = ""; / / Merchant ID public static String MCH_ID = ""; / / Wechat Merchant platform-account Settings-Security Settings-api Security, configure 32-bit key public static String KEY = ""; / / transaction type public static String TRADE_TYPE_JS = "JSAPI" / / WeChat Pay callback url public static String NOTIFY_URL = "";}
After reading this article, I believe you have a certain understanding of "how to use java to achieve WeChat Pay's official account payment". If you want to know more about it, welcome to follow the industry information channel, thank you for reading!