当前位置:网站首页>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 .
边栏推荐
- Kotlin variable
- Pytoch loads the initialization V3 pre training model and reports an error
- Array cyclic shift problem
- A new WiFi option for smart home -- the application of simplewifi in wireless smart home
- Learn the garbage collector of JVM -- a brief introduction to Shenandoah collector
- Average lookup length when hash table lookup fails
- Transactions from January 6 to October 2022
- [figure neural network] GNN from entry to mastery
- GPON technical standard analysis I
- Sqoop import and export operation
猜你喜欢

Redis clean cache

ZABBIX ODBC database monitoring

Knowledge representation (KR)

Implementing Yang Hui triangle with cyclic queue C language

Pytoch loads the initialization V3 pre training model and reports an error

Yum only downloads the RPM package of the software to the specified directory without installing it

MySQL index - extended data

上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花

Pytorch two-layer loop to realize the segmentation of large pictures

MySQL index (1)
随机推荐
Keras implements verification code identification
MySQL transaction
Learn JVM garbage collection 02 - a brief introduction to the reference and recycling method area
Pytoch implements tf Functions of the gather() function
JDBC -- use JDBC connection to operate MySQL database
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
Implementing Yang Hui triangle with cyclic queue C language
Redis master-slave configuration and sentinel mode
Deep discussion on the decoding of sent protocol
Take you hand in hand to develop a service monitoring component
ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
Master-slave mode of redis cluster
MySQL constraints
MySQL log module of InnoDB engine
OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
Compilation principle reading notes (1/12)
在家庭智能照明中应用的测距传感芯片4530A
Redis clean cache
Redis cluster configuration