# Introduction to Trial Mini Program
In order to help service providers better docking trial Mini Program, if you encounter problems during use, you canOpen Platform Service Provider ZonePosting exchanges.
For the application case sharing of the trial Mini Program, please checkhttps://developers.weixin.qq.com/community/develop/article/doc/0008489e97076833bf3cb67625d813
For an introductory video on the trial Mini Program, check outhttps://developers.weixin.qq.com/community/business/doc/0008c43a5c4600c1e45c031bc5ac0d
# I. What is a Trial Small Program
The trial mini program is a Mini Program launched by WeChat official for merchants to quickly experience the mini program and facilitate a complete and real trial to assist in decision-making. Third-party developers can provide the ability to quickly register and try out Mini programs through the interface, and businesses only need to fill in the Mini Program name, avatar and real name authorization to quickly and truly experience Mini programs, which takes a total of 1 minute. After the completion of the certification audit, you can turn into a formal Mini Program.
# Core value
- Merchants: can quickly experience the Mini Program, easy to complete, full, real trial and then make decisions. Avoid the cumbersome material preparation and certification process before confirming the need to open a Mini Program.
- Service providers: reduce the threshold for promoting template Mini programs, so that businesses can quickly experience Mini programs, facilitate decision-making, and improve business conversion rate. In addition, it can also help service providers to carry out online expansion at low cost, convert existing businesses more efficiently, and expand more Mini programs.
# Comparison of trial Mini Program and ordinary Mini Program
Lower threshold experience Mini Program, WYSIWYG, fast experience
More efficient conversion, full decision-making and re-submission of materials, do not work in vain
# Trial Mini Program Usage Restrictions
1、 A WeChat ID can register 5 mini programs
2、 The maximum number of experience members can be set up to 15 (the same as the number of experience members that can be set by a personal Mini Program), and the number of unbinding is 5 times.
3、 The experience version is valid for 14 days and is logged out without becoming regular after 14 days, when a template message is also sent to the user
4、 Nickname semi-automatic settings, mandatory suffix "experience Mini Program"After the Mini Program turns positive, the service provider needs to callSetNameTo reset the name of the interface to the
5、 Unsupported functions: WeChat payment, Mini Program live, can not be searched, no appsecret, can not scan the code login mp.WeChat.qq.com
6、 The trial Mini Program cannot authorize the permission set to a third party by scanning the code authorization
7、 The interface to get the phone number does not support calling. It is recommended that service providers do compatible logic, for example, to determine if it is a Mini Program for individual subjects, and the front-end is designed to allow users to enter their mobile phone numbers.
8、 Experience version of the Mini Program can not generate Mini Program code, can only generate ordinary two-dimensional code(And ordinary two-dimensional code can not long press recognition in the Mini Program), It is recommended that the service provider make compatible logic
- For other limitations, please refer to the parameter instructions in the interface documentation
# Special considerations
1, after the trial Mini Program completes the certification, it will not remove the [trial Mini Program], and the service provider needs to adjust the interface of the [set name] to reset the name (with the "trial Mini Program or trial store" Mini Program name, Errors will be reported when submitting for review, so be sure to change the name before submitting for review). Moreover, if the name is changed after the release is online, the user needs to re-authenticate the name.
2, when the Mini Program has been completed after the conversion, still can not scan the code to log in mp, need to "Mini Program assistant" to complete the email account password registration, can normal log in mp. Please check the operation detailshttps://kf.qq.com/touch/sappfaq/200617VbQzaa200617aq67ru.html
3, in order for third-party developers to better understand the serial logic of the above interface, the following flow chart for reference:
# II. Steps for using third-party platform service providers
# 1. Modify permission sets
Login to the third-party platform to re-modify the permission set, and add the check of "Trial Mini Program Quick Certification."
Please note:
Please modify through the [Modify] entry, the change will take effect
Therefore, if the amendment is made through the [Revision Platform] portal, it also needs to be submitted to the whole network for publication before it takes effect. Details Card ReferencePermission Set Modification Instructions
# 2. Generate tokens
- After the user authorization is confirmed, the third party platform receivesAuthorization message callback, you can get authorization_code
- Obtain authorization_Code can be passed through the interfaceapi_query_authIn exchange for authorizer_refresh_Token
- Obtained authorizer_refresh_After the token can pass through the interfaceapi_authorizer_TokenGet authorizer_access_token。
# 3, calling the interface
Follow the guidelines to call the interface. Try Mini Program related interfaces as follows, in addition to the following interfaces, the trial Mini Program can also normally call [do business on behalf of Mini Program] directory under the relevant interfaces for development.
- [Create a trial Mini Program](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/The beta_Mini_Programs/fastregister.html)Interface to quickly generate appid & complete third party platform authorization without auditing authentication
- [Trial Mini Program Quick Authentication](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/The beta_Mini_Programs/fastverify.html)Interface for the trial Mini Program to be quickly rectified by the way of the legal person sweeping the face
- [Modify the name of the trial Mini Program](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/The beta_Mini_Programs/fastmodify.html)Interface to modify the name of the trial Mini Program.
In addition, because the open form of the trial Mini Program is an interface, it needs to be used together with other interfaces to be better applied. The following interfaces may be involved at different stages for the developer's reference:
# 4. (Optional) Docking Mini Program Service Provider Component
Third-party service providers can choose different carrier docking trial Mini Programs according to their own business situations, such as Mini Programs, service numbers, WeCom, PC side or mobile apps. If you choose to use a Mini Program to carry a quick registration trial Mini Program, in order to make the experience of the merchant registering the trial Mini Program smoother, you need to apply for a Mini Program service provider component again, and introduce the component in the Mini Program.
The main purpose of the Mini Program service provider component is to open the third-party authorization confirmation page in the Mini Program and to support jumping from the Mini Program of the service provider to the newly created trial Mini Program through the plug-in.
Small Program Service Provider Component For more details please see[Mini Program Server Component Introduction Document](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/product/Register_Mini_Programs/The beta_mp_plugin.html)
# III. Creating a Trial Mini Program Interface
- [Creating a Trial Mini Program Documentation](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/The beta_Mini_Programs/fastregister.html)Interface to quickly generate appid & complete third party platform authorization without auditing authentication
# 3.1. Use of Interfaces
In order for the Vendor to better understand the use of this interface, please read the following description in detail:
- interface returns authorize_Url (authorization confirmation URL), the service provider needs to send the url to the user (the platform does not send the template message to the user), the user clicks into the h5 page
- The URL is valid for 24 hours. And, if the user fails to create the page after the operation, the service provider needs to retrieve the new url to send it to the user.
- After user confirmation, it will generate an unauthenticated Mini Program appid, and complete the third party authorization.
- The service provider can receive The URL receives the generated appid
- The WeChat user defaults to the administrator of the Mini Program and has the right to experience by default.
# 3.2 User Authorization Page Interactive Example Diagram
- The authorization page is valid within 24 hours, and users need to be reminded to confirm the authorization in time.
# 3.3 Rules for Template Messages Received by Users
After creating a trial Mini Program, since the trial Mini Program is valid for only 14 days, the platform will send a template message to the user through the WeChat Official Platform.
Cancellation Notice: Notification will be sent at the time of cancellation
# IV. Trial Mini Program Fast Authentication Interface
- [Trial Mini Program Quick Authentication](https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/The beta_Mini_Programs/fastverify.html)Interface for the trial Mini Program to be quickly rectified by the way of the legal person sweeping the face
# 4.1. Use of Interfaces
In order for the Vendor to better understand the use of this interface, please read the following description in detail:
1、 Through the interface to complete the certification needs to go through the enterprise legal person face recognition and Mini Program administrator authorization to confirm two links, one is indispensable.
2、 The platform will first issue the template message to the enterprise legal person to complete the authorization and then issue the template message to the Mini Program administrator for authorization confirmation, if the former authorization fails or is not completed, it will not issue the template message to the Mini Program administrator.
# 4.2, user authorization page interaction example diagram
# Corporate authorization confirmation page
# Mini Program administrator authorization confirmation page
# 4.3 Rules for Template Messages Received by Users
1、 Enterprise legal person receives face recognition confirmation template message
2、 Mini Program administrator to validate the template message (if 1 fails, 2 will not receive the template message)