当前位置:网站首页>Wechat enterprise payment to change access, open quickly
Wechat enterprise payment to change access, open quickly
2022-07-05 12:45:00 【QQ541645121】
Enterprises pay to change is the ability of wechat to pay for opening up , Official documents :https://pay.weixin.qq.com/wiki/doc/api/tools/mch_pay.php?chapter=14_1
Signature algorithm involved , The document is not detailed , This part of our online code should help you :
public static String getSign(Map<String, String> params, String paternerKey) throws UnsupportedEncodingException {
return EnDecryptUtil.MD5(createSign(params, false) + "&key=" + paternerKey).toUpperCase();
}
/**
* Construct signature
*
* @param params
* @param encode
* @return
* @throws UnsupportedEncodingException
*/
public static String createSign(Map<String, String> params, boolean encode) throws UnsupportedEncodingException {
Set<String> keysSet = params.keySet();
Object[] keys = keysSet.toArray();
Arrays.sort(keys);
StringBuffer temp = new StringBuffer();
boolean first = true;
for (Object key : keys) {
if (key == null || StringUtil.isEmpty(params.get(key))) // If the parameter is empty, it will not participate in the signature
continue;
if (first) {
first = false;
} else {
temp.append("&");
}
temp.append(key).append("=");
Object value = params.get(key);
String valueStr = "";
if (null != value) {
valueStr = value.toString();
}
if (encode) {
temp.append(URLEncoder.encode(valueStr, "UTF-8"));
} else {
temp.append(valueStr);
}
}
return temp.toString();
}
You can see , Core application conditions :
1、 The merchant number has entered 90 And as of today, push back 30 Day merchant number keeps continuous transactions .
2、 Login to WeChat payment merchant platform - Product center , Open enterprise payment to change .
Many people are stuck in this link , that , We can achieve through breakthroughs “ Exemption 90 Heaven settled in 、30 Daily continuous trading flow ” The limitation of , To achieve rapid project launch .
边栏推荐
- JDBC exercise - query data encapsulated into object return & simple login demo
- Rasa Chat Robot Tutorial (translation) (1)
- Instance + source code = see through 128 traps
- Resnet+attention project complete code learning
- Understand redis persistence mechanism in one article
- Learning JVM garbage collection 06 - memory set and card table (hotspot)
- Redis master-slave configuration and sentinel mode
- Add a new cloud disk to Huawei virtual machine
- Redis highly available slice cluster
- Sqoop import and export operation
猜你喜欢
Database connection pool & jdbctemplate
Implementing Yang Hui triangle with cyclic queue C language
Keras implements verification code identification
Principle of universal gbase high availability synchronization tool in Nanjing University
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
Anaconda creates a virtual environment and installs pytorch
Understand redis persistence mechanism in one article
MySQL storage engine
Master-slave mode of redis cluster
Kotlin variable
随机推荐
Redis highly available sentinel mechanism
MySQL trigger
CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器
Learn memory management of JVM 01 - first memory
MySQL regular expression
VoneDAO破解组织发展效能难题
Storage Basics
MySQL function
GPS數據格式轉換[通俗易懂]
ZABBIX monitors mongodb templates and configuration operations
Yum only downloads the RPM package of the software to the specified directory without installing it
GPON other manufacturers' configuration process analysis
PIP command reports an error pip is configured with locations that requires tls/ssl problems
[hdu 2096] Xiaoming a+b
前几年外包干了四年,秋招感觉人生就这样了..
Distributed solution - completely solve website cross domain requests
MySQL basic operation -dql
GPS data format conversion [easy to understand]
Detailed structure and code of inception V3
Introduction to GNN