当前位置:网站首页>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 .
边栏推荐
- struct MySQL
- Handwriting blocking queue: condition + lock
- ZABBIX agent2 monitors mongodb templates and configuration operations
- [hdu 2096] Xiaoming a+b
- Pytoch implements tf Functions of the gather() function
- 激动人心!2022开放原子全球开源峰会报名火热开启!
- 上午面了个腾讯拿 38K 出来的,让我见识到了基础的天花
- About LDA model
- MySQL view
- View and modify the MySQL data storage directory under centos7
猜你喜欢

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

Resnet+attention project complete code learning

Simply take stock reading notes (2/8)

10 minute fitness method reading notes (5/5)

Kotlin variable

OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首

Get data from the database when using JMeter for database assertion

Constructing expression binary tree with prefix expression

Tips and tricks of image segmentation summarized from 39 Kabul competitions

Principle of universal gbase high availability synchronization tool in Nanjing University
随机推荐
10 minute fitness method reading notes (2/5)
MySQL constraints
SAP 自开发记录用户登录日志等信息
Leetcode-1. Sum of two numbers (Application of hash table)
MySQL regular expression
Learn memory management of JVM 01 - first memory
OPPO小布推出预训练大模型OBERT,晋升KgCLUE榜首
Pytoch monolayer bidirectional_ LSTM implements MNIST and fashionmnist data classification
ZABBIX monitors mongodb templates and configuration operations
Kotlin function
Iterator details in list... Interview pits
以VMware创新之道,重塑多云产品力
Differences between IPv6 and IPv4 three departments including the office of network information technology promote IPv6 scale deployment
How does MySQL execute an SQL statement?
Learn garbage collection 01 of JVM -- garbage collection for the first time and life and death judgment
Distance measuring sensor chip 4530a used in home intelligent lighting
Compilation principle reading notes (1/12)
View and terminate the executing thread in MySQL
A new WiFi option for smart home -- the application of simplewifi in wireless smart home
Flume common commands and basic operations