当前位置:网站首页>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 few years ago, I outsourced for four years. Qiu Zhao felt that life was like this
- Programming skills for optimizing program performance
- Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
- About LDA model
- Transactions from December 27 to 28, 2021
- How can labels/legends be added for all chart types in chart. js (chartjs.org)?
- Pytorch two-layer loop to realize the segmentation of large pictures
- Yum only downloads the RPM package of the software to the specified directory without installing it
- How to recover the information server and how to recover the server data [easy to understand]
- 上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
猜你喜欢

Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification

Average lookup length when hash table lookup fails

NPM install reports an error

About LDA model

CVPR 2022 | 基于稀疏 Transformer 的单步三维目标识别器

Preliminary exploration of basic knowledge of MySQL

Pytoch uses torchnet Classerrormeter in meter

Redis clean cache

Annotation problem and hidden Markov model

Pytorch two-layer loop to realize the segmentation of large pictures
随机推荐
在家庭智能照明中应用的测距传感芯片4530A
GPS data format conversion [easy to understand]
struct MySQL
Solve the problem of cache and database double write data consistency
ActiveMQ installation and deployment simple configuration (personal test)
Cypher syntax of neo4j graph database
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
GPON other manufacturers' configuration process analysis
GPON technical standard analysis I
ZABBIX customized monitoring disk IO performance
MySQL installation, Windows version
Summary of C language learning problems (VS)
MySQL index - extended data
Get data from the database when using JMeter for database assertion
MySQL transaction
The relationship between the size change of characteristic graph and various parameters before and after DL convolution operation
POJ-2499 Binary Tree
Just a coincidence? The mysterious technology of apple ios16 is actually the same as that of Chinese enterprises five years ago!
ZABBIX 5.0 - LNMP environment compilation and installation
A new WiFi option for smart home -- the application of simplewifi in wireless smart home