当前位置:网站首页>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 .
边栏推荐
- 在家庭智能照明中应用的测距传感芯片4530A
- Detailed steps for upgrading window mysql5.5 to 5.7.36
- MySQL installation, Windows version
- ZABBIX agent2 monitors mongodb nodes, clusters and templates (official blog)
- GPS數據格式轉換[通俗易懂]
- Distributed solution - Comprehensive decryption of distributed task scheduling platform -xxljob
- Learn the garbage collector of JVM -- a brief introduction to Shenandoah collector
- GPS data format conversion [easy to understand]
- 从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks
- Redis highly available sentinel cluster
猜你喜欢

Ecplise development environment configuration and simple web project construction

Simply take stock reading notes (2/8)

Storage Basics

Redis's memory elimination mechanism, read this article is enough.

Distance measuring sensor chip 4530a used in home intelligent lighting

Simply take stock reading notes (4/8)

Database connection pool & jdbctemplate

JDBC -- extract JDBC tool classes

VoneDAO破解组织发展效能难题

NPM install reports an error
随机推荐
The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
Docker configures redis and redis clusters
Implementing Yang Hui triangle with cyclic queue C language
Using MySQL in docker
Simply take stock reading notes (2/8)
[superhard core] is the core technology of redis
Learning JVM garbage collection 06 - memory set and card table (hotspot)
Constructing expression binary tree with prefix expression
Language model
Kotlin function
Resnet18 actual battle Baoke dream spirit
Distributed cache architecture - cache avalanche & penetration & hit rate
Summary of C language learning problems (VS)
[figure neural network] GNN from entry to mastery
Simply take stock reading notes (4/8)
ZABBIX monitors mongodb templates and configuration operations
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Simply take stock reading notes (1/8)
How can labels/legends be added for all chart types in chart. js (chartjs.org)?
10 minute fitness method reading notes (2/5)