当前位置:网站首页>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 .
边栏推荐
- 2021.12.16-2021.12.20 empty four hand transaction records
- Interviewer: is acid fully guaranteed for redis transactions?
- UNIX socket advanced learning diary -ipv4-ipv6 interoperability
- Database connection pool & jdbctemplate
- Hexadecimal conversion summary
- A few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
- Learn memory management of JVM 01 - first memory
- Programming skills for optimizing program performance
- Transactions from December 27 to 28, 2021
- JDBC -- extract JDBC tool classes
猜你喜欢
从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
2021-12-22 transaction record
Redis highly available sentinel mechanism
Master-slave mode of redis cluster
ZABBIX customized monitoring disk IO performance
《信息系统项目管理师》备考笔记---信息化知识
About LDA model
Redis's memory elimination mechanism, read this article is enough.
Solve the problem of cache and database double write data consistency
随机推荐
Full text search of MySQL
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
Average lookup length when hash table lookup fails
Kotlin函数
Yum only downloads the RPM package of the software to the specified directory without installing it
ZABBIX agent2 installation
Preliminary exploration of basic knowledge of MySQL
Volatile instruction rearrangement and why instruction rearrangement is prohibited
Interviewer: is acid fully guaranteed for redis transactions?
Distributed solution - distributed lock solution - redis based distributed lock implementation
Learn memory management of JVM 01 - first memory
Understand redis persistence mechanism in one article
Simply take stock reading notes (4/8)
NLP engineer learning summary and index
Take you hand in hand to develop a service monitoring component
End to end neural network
GNN(pytorch-geometric)
Time conversion error
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
A new WiFi option for smart home -- the application of simplewifi in wireless smart home