当前位置:网站首页>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.
边栏推荐
猜你喜欢
Linux安装Oracle和postgrepSQL数据库
【问题解决】训练和验证准确率很高,但测试准确率很低
dlopen failed: library "libtaml.so" not found
Biotin-Cy2 Conjugate,生物素-Cy2 偶联物_Cy2 生物素偶联物
03|流程控制
Next.js获取路由参数及styled-jsx 的使用
The older tester has just passed the "hurdle" of being 35 years old, and I want to tell you something from my heart
《痞子衡嵌入式半月刊》 第 60 期
3.4 - 编译与解释 3.5 - 编译过程 3.8 - 文法
go语言的并发原理(goroutine)
随机推荐
Fury:一个基于JIT动态编译的高性能多语言原生序列化框架
重估HR SaaS:一体化后的新三年
微服务【同步和异步通讯详解】第6章
源码编译安装LAMP和LNMP
今日睡眠质量记录61分
数据库的备份与恢复「建议收藏」
大龄测试员刚迈过了 35 岁这个“坎儿”,和大家说点儿心里话
快速响应性智能型/智能响应性聚乙二醇纳米/还原响应型水凝胶的研究与制备
YOLOV5 study notes (7) - training your own data set
win10重装系统后没声音怎么办?
GoLang 使用 goroutine 停止的几种办法
arm-4-裸板开发
西安生物素-四聚乙二醇-酰胺-4苯酚 浅黄色半固态
考柏的感慨
Enhanced Deep Residual Networks for Single Image Super-Resolution
-红与黑-
Leetcode81. 搜索旋转排序数组 II
-骑士巡游-
Solidity 智能合约入门
解锁时间生成与比较