当前位置:网站首页>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 .
边栏推荐
- GPS數據格式轉換[通俗易懂]
- Transactions on December 23, 2021
- Time conversion error
- Get the variable address of structure member in C language
- Kotlin function
- Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
- struct MySQL
- [superhard core] is the core technology of redis
- Solution to order timeout unpaid
- MySQL constraints
猜你喜欢
Redis's memory elimination mechanism, read this article is enough.
Storage Basics
Average lookup length when hash table lookup fails
Get the variable address of structure member in C language
Simply take stock reading notes (2/8)
About cache exceptions: solutions for cache avalanche, breakdown, and penetration
Migrate data from Mysql to neo4j database
从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
Learn memory management of JVM 01 - first memory
Simply take stock reading notes (4/8)
随机推荐
ZABBIX ODBC database monitoring
在家庭智能照明中应用的测距传感芯片4530A
Redis highly available sentinel cluster
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
How can labels/legends be added for all chart types in chart. js (chartjs.org)?
超高效!Swagger-Yapi的秘密
Kotlin流程控制、循环
GPS data format conversion [easy to understand]
上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
Solve the problem of cache and database double write data consistency
2021.12.16-2021.12.20 empty four hand transaction records
Array cyclic shift problem
End to end neural network
Kotlin函数
《信息系统项目管理师》备考笔记---信息化知识
View and terminate the executing thread in MySQL
MySQL log module of InnoDB engine
JDBC exercise - query data encapsulated into object return & simple login demo
激动人心!2022开放原子全球开源峰会报名火热开启!
Pytoch counts the number of the same elements in the tensor