当前位置:网站首页>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.
边栏推荐
猜你喜欢

线程的同步与互斥

RebatMq消息中间件(一) 各个中间件介绍

win10重装系统后没声音怎么办?

CST Studio Suite 2021 software installation package and installation tutorial

pytest:如何在测试中编写和报告断言

Leetcode80. 删除有序数组中的重复项 II

Web性能测试模型小结

CAS:183896-00-6 (Biotin-PEG3-C3-NH2) PEG衍生物

JVM Memory and Garbage Collection - 10. Direct Memory

宝塔实测-搭建LightPicture开源图床系统
随机推荐
[SSH]如何敲一条线
Spark基础【RDD单Value类型转换算子】
快速响应性智能型/智能响应性聚乙二醇纳米/还原响应型水凝胶的研究与制备
Win11怎么关闭系统保护功能?系统保护还原功能怎么关闭?
c语言结构体、函数以及指针练习(简单通讯录)
输入的这些数是否对称
【数据存储】signed,unsigned到底怎么区分?如何计算?
pytest:如何在测试中编写和报告断言
GoLang 使用 goroutine 停止的几种办法
nfs配置
二进制、八进制、十进制、十六进制之间的转换
深度剖析 Apache EventMesh 云原生分布式事件驱动架构
CST Studio Suite 2021 software installation package and installation tutorial
Kubernetes 开发环境比对
Fury:一个基于JIT动态编译的高性能多语言原生序列化框架
网络协议05 -网络层
程序员从佩洛西窜访事件中可以学到什么?
服装店管理系统如何推送活动?
Tensor flow 踩坑记
断开和服务器共享连接的方法「建议收藏」