当前位置:网站首页>How to activate the payment function on WeChat official account?
How to activate the payment function on WeChat official account?
2022-08-10 01:47:00 【susu98637】
With the start of the second half of mobile payments, many merchants are now actively preparing for the online transition.Using WeChat official account to pay is undoubtedly the first choice for many merchants. It can not only set up the merchant's own brand, but also allow fans to follow the official account, and at the same time, it can also use WeChat traffic to increase exposure.
And for consumers, opening WeChat and using the official account to buy goods is bound to be more convenient and handy than other methods.
However, many merchants and service providers will step on many "pits" when opening the account because they are not aware of the particularity of the official account payment. I will share with you some procedures for opening the official account payment, as well as precautions.
1. First of all, merchants need to apply for opening their own WeChat official account (must be a service account) on the WeChat official platform, and deploy their own products and purchase portals in the official account.
2. After you have your own official account, you can apply for opening a payment merchant account.
1) When applying, please note that you need to use the same merchant entity as the official account application entity as the name of the merchant account to access the network;
2)Especially for merchants with parentheses in the subject name, pay special attention to the format of the parentheses in the subject when applying for an official account at that time, and must be consistent.
It is usually recommended that merchants directly copy the subject name from the WeChat public background to the service provider to ensure that everything is safe.The paste location is: WeChat public background - official account settings - "subject information" content in account details.
3) After opening the merchant account, the merchant needs to provide the appid of the official account and the payment authorization directory to the service provider.
The official account appid: the unique identifier of the WeChat official account, usually an 18-bit string starting with "wx".After applying for an official account on the WeChat public platform, WeChat will automatically assign the corresponding appid to uniquely identify the application.It can be viewed on the WeChat public platform - Developer Center, and this field will also be included in the merchant's official account opening email.
Payment authorization directory: that is, the domain name address that uses the official account payment method to initiate payment requests.
(1) All domain name links that use the official account payment method to initiate payment must be under the payment authorization directory;
(2) Up to 5 can be configured at the same time (can be modified and replaced), and the domain name must pass the ICP record;
(3) The header of the directory must contain http or https, and it needs to be refined to the second or third level directory, ending with "/".
Payment process:
The user opens the merchant's webpage to purchase products, initiates payment, calls the getBrandWCPayRequest interface through JavaScript on the webpage, initiates a WeChat payment request, and the user enters the payment process.
After the user successfully pays and clicks the Done button, the front end of the merchant will receive a JavaScript return value.Merchants can directly jump to the static page of successful payment for display.
The merchant's background receives the payment success callback notification from the WeChat open platform, indicating that the order payment is successful.
边栏推荐
猜你喜欢
dlopen failed: library “libtaml.so“ not found
Why don't suggest you run in Docker Mysql?
LSTM-based distributed energy generation prediction (Matlab code implementation)
生物素叠氮化物中的(CAS:1527486-16-3TAMRA-azide-PEG3-Biotin)反应的特点!
Project (7) - PolarSeg point cloud semantic segmentation
渗透测试与攻防对抗——漏洞扫描&逻辑漏洞(Part1)
【毕业设计】 基于Stm32的家庭智能监控系统 - 单片机 图像识别 人体检测 AI
CAS:183896-00-6 (Biotin-PEG3-C3-NH2) PEG衍生物
深入理解Aarch64内存管理
最高月薪15K,谁有历经千辛万苦的意志,谁就能收获属于自己的成功~
随机推荐
断开和服务器共享连接的方法「建议收藏」
NTU General Database-Gbase-8a-Learning-04-Deploying Distributed Clusters
足不出户也能看星空
博弈小游戏
MATLB|和她跌宕起伏最终到达人生之峰【浪漫旅途】
走出迷宫的最少步数2
JSP简介
Fury:一个基于JIT动态编译的高性能多语言原生序列化框架
算法---整数替换(Kotlin)
【Django】缓存
Tensor flow 踩坑记
【问题解决】训练和验证准确率很高,但测试准确率很低
The technical aspects of the byte have been passed, and the salary has been negotiated for 20K*13, but the result is still being brushed. I asked the HR why...
Leetcode80. 删除有序数组中的重复项 II
Creo5.0 introductory tutorial free material
组件传值-作用域插槽
Win7怎么把控制面板添加到右键菜单
为什么不建议你在 Docker 中跑 Mysql ?
[C language] Address book "Static Memory Version"
程序员从佩洛西窜访事件中可以学到什么?