当前位置:网站首页>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 .
边栏推荐
- A new WiFi option for smart home -- the application of simplewifi in wireless smart home
- Redis highly available sentinel mechanism
- MySQL view
- MySQL constraints
- Hexadecimal conversion summary
- Learn memory management of JVM 01 - first memory
- Experimental design - using stack to realize calculator
- Summary of C language learning problems (VS)
- Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
- Database connection pool & jdbctemplate
猜你喜欢
Summary of C language learning problems (VS)
Pytoch implements tf Functions of the gather() function
Redis highly available sentinel mechanism
NPM install reports an error
Understand redis persistence mechanism in one article
VoneDAO破解组织发展效能难题
Knowledge representation (KR)
MySQL index - extended data
Transactions from December 27 to 28, 2021
JDBC exercise - query data encapsulated into object return & simple login demo
随机推荐
Instance + source code = see through 128 traps
GPS數據格式轉換[通俗易懂]
前几年外包干了四年,秋招感觉人生就这样了..
How to design an interface?
ActiveMQ installation and deployment simple configuration (personal test)
NLP engineer learning summary and index
About LDA model
Kotlin流程控制、循环
MySQL transaction
ZABBIX agent2 monitors mongodb templates and configuration operations
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
MySQL basic operation -dql
10 minute fitness method reading notes (3/5)
Learn JVM garbage collection 05 - root node enumeration, security points, and security zones (hotspot)
C language structure is initialized as a function parameter
Simply take stock reading notes (2/8)
Clear neo4j database data
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
Simply take stock reading notes (3/8)
MySQL log module of InnoDB engine