In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Most people do not understand the knowledge points of this article "how to add Mini Program member card opening plug-ins", so the editor summarizes the following contents for you, with detailed contents and clear steps, which can be used for reference. I hope you can get something after reading this article. Let's take a look at this "Mini Program member card opening plug-in how to add" article.
Many Mini Program offline will be associated with a membership card, which needs to be done in the case of a member card opening. Developers must add it through the card opening plug-in.
In order to improve the efficiency of Wechat membership card merchants in opening cards in Mini Program and help users quickly fill in information when signing up for members, Mini Program and Wechat card packages provide Mini Program card opening components for developers to use.
In the case of a member card opening scenario, developers can use the card opening component to help users quickly open a card and automatically add a membership card to the card package.
After users enter the card component, the names, mobile phone numbers, birthdays and other information that have been filled in using Wechat membership card will be automatically pre-filled, and users only need to simply confirm to submit member registration information.
Collect card coupons in Mini Program:
After the user submits the information, he will receive a Wechat membership card in the card package, which can be used for presentation, inquiry and other purposes.
1. The developer must have an official account with card and coupon permission and a verified Mini Program account
two。 Developers must apply for a third-party platform account and bind Mini Program and the official account under the same third-party account. For more information about third-party platforms, please refer to Wechat Open platform.
3. Read the description of card voucher interface and create card voucher interface, create card voucher and get card_id
4. Call the wx.addcard API in Mini Program and handle the callback for successful collection
5. The card_id and code (encrypted code) request decoding code API obtained in the third step to obtain the real code
6. Record the openid, code and card_id in the user's Mini Program
7. Handle the card ticket collection event, record the openid of the user in the official account, as well as the code and card_id received by the user.
Points for attention
The api_ticket in the signature involved in the 1.wx.addcard API must pass the ticket obtained by creating the official account of the card coupon
two。 After the user receives the card and coupon, the event of collecting the card and coupon will be pushed to the developer's server, and the developer must deal with it. For more information, please see the notice of card and coupon event.
3. Developers can use outer_str to determine the source of users' coupons.
4. This feature only supports version 1.1.0 and above of the base library. Version judgment and compatibility with lower versions must be made in Mini Program.
The above is about the content of this article on "how to add Mini Program card opening plug-ins". I believe we all have a certain understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.