1. Requirement Background
As a platform mini program, the E-Order mini program uses unified settings and functions for all tenants, including basic information (miniature name, abbreviation, avatar, etc.), and cannot support customer personalized settings, such as changing the mini program name or icon.
For enterprises that use the exclusive mini-program, when the downstream users log in to E-Order, the icon and name of E-Order will be from the exclusive mini program by default:

Accounts can upgrade the platform mini program (ShareCRM E-Order) to an exclusive mini program in [Order Management] > [Mall Settings] > Mini Programs tab page. Before upgrading the exclusive mini program, the account needs to apply for an empty shell mini program and complete the certification (For uncertified applets, please complete the certification first before authorizing them to ShareCRM), and then authorize them to ShareCRM and complete the packaging of functions. After completion, accounts can use their own mini program to display their company name, logo and subject information to the outside world. The mini program can also be associated with the company's existing official account to achieve full business interoperability and mutual drainage (Note: if If there is a binding official account on the ShareCRM platform, the bound mini program should be the same subject as the official account, otherwise the mini program and the official account cannot jump and share data).

Authorization Instructions:
1. One WeChat mini program can only be authorized to one ShareCRM app (such as E-Marketing, E-Order or E-Service).
2. In order to ensure the normal use of all functions, please keep the default selection when authorizing, and authorize the authority to ShareCRM.
3. Ask the administrator of the mini program to authorize. When authorizing, please select it in the [Mini Program] list, otherwise the authorization binding fails. Click to view Precautions;
2. Pre-configuration of Enterprise Mini Program (Required)
Before upgrading the exclusive mini program, the account needs to apply for an empty shell mini program and complete the authentication (for uncertified mini programs, please complete the certification before authorizing them to ShareCRM), and the following pre-configurations are required for enterprise mini program:
2.1. The basic information (name, description, icon, etc.) of the enterprise mini program must be filled in completely
2.2. Since our template mini program introduces third-party plug-ins and services, enterprise mini programs also need to introduce corresponding plug-ins and activate corresponding services in the mini program management background:
Item 1: Add [WeChat Simultaneous Interpretation] plug-in:
Specific steps: Wechat Public Platform -> Settings -> Third Party Settings -> Add Plugin -> Enter wx069ba97219f66d99 (plugin id) -> Add


Item 2: Open the [Get the current geographic location and speed] interface service:
Path > Development Management > Interface Settings


The reason for the application can be written: Since the business involves the delivery address, the location information of the user needs to be obtained, please approve.

Note: In order to increase the probability of application approval, it is recommended to upload the following pictures at the same time

After the submission is successful, the status of this item will change to 【Applying】

Note: If you can't see the button [Go to activate], you need to add the service category first:
Path: Settings>Basic Settings>Service Category>Click Details

Add category:



Add the following 2 categories (reason: these two categories do not need to add qualification materials): IT technology > software service provider, business self-operated > apparel underwear (not necessarily apparel underwear, as long as it is self-operated by the merchant If the customer already has a category under the self-operated merchant, there is no need to maintain it again.):

After adding, you can normally activate [Get Current Geographical Location, Speed] in the development management.
Item 3: Override the server [reuqest legal domain name]:
Path: Development>Development Management>Development Settings



After scanning the code successfully, paste the following domain name text into the request legal domain name text box:
https://a9.fspage.com
https://ale.fxiaoke.com
https://apis.map.qq.com
https://hwcloud.fxiaoke.com
https://img.ceshi112.com
https://img.fxiaoke.com
https://pay.fxiaoke.com
https://restapi.amap.com
https://www.ceshi112.com
https://www.fxiaoke.com
Then click Save to submit.

3. Upgrade and manage enterprise-specific mini programs
3.1 Bind and submit/publish updates
o
Path: Upstream [Order Management] > [Mall Settings] > Mini Program tab page

Click to upgrade to an enterprise-specific applet, enter the scan code authorization page, and authorize the empty shell applet (here refers to [Funxiang Xiaoshentong] in the screenshot) to Fanxiang Sales Customer ( Note: Mini-program is required Administrator scan code authorization):


After selecting the mini-program that needs to be authorized, the system will prompt that the authorization is successful. At this time, the name, icon, etc. of FunShare will be based on the settings of the bound mini-program;
At this time, the system prompts, "Have you successfully authorized the WeChat Mini Program?" Click [Authorized].

When binding for the first time, you need to submit an update. After submitting, you need to wait for WeChat to review. At this time, the interface status is displayed as [in review]:


After the review is passed, the [Publish Update] button will appear on the interface. You need to click Publish. After publishing, you can normally search for the exclusive applet in WeChat and enter the ordering mall to order:

After the release is successful, you can search for the exclusive mini-program in WeChat normally, and log in to the exclusive mini-program to use Dinghutong normally.(Note: If it is not the latest version, you will be bound to the mini-program interface It will prompt [to be updated], details 3.5 version update steps to submit update), the function and effect are consistent with the official template applet:


After the authorization is successful, you can see the basic information of the bound applet on the applet tab page, including authorization status, authentication status, version information, logo, name, etc.:
Click Operation to manage the bound applet:

3.2 Go to login
Click to log in, and you can log in to the official management background of the WeChat Mini Program, where you can manage the currently bound Mini Programs:

3.3 Reauthorization
When the type of the applet changes, or the permission authorization needs to be readjusted, it can be re-authorized.
Note:The re-authorized applet must be a previously authorized applet, cannot use other Applet,Otherwise, the authorization will fail; if you need to use other applets,you need to unbind the current applet first .
Click Re-authorize, and you will jump to the scanning interface of the bound applet to re-authorize:

3.4 Cancellation of authorization
Click Cancel Authorization to unbind the current Mini Program with FunShare, and return to use the original FunShare Ordering Platform Mini Program (including Mini Program name, logo, other basic information, etc.);

Note: Canceling the authorization on the current interface will only cancel the relationship with the Fanxiang CRM tenant, and the WeChat server will still think that the Mini Program is authorized to our platform (that is to say, it can still be viewed in the background of the Mini Program if it has not been unbound) Order pass third-party platform),
Complete deauthorization steps: 1. Cancel the authorization in the Dinghutong console page;2, enter the WeChat official mini program background to deauthorize the third party of Dinghutong Platform:

3.5 version update
If there is a new version of OrderPass released, it will prompt [to be updated] on the interface of the applet. At this time, click [Submit Update], and Funshare will automatically submit the latest version of OrderPass to WeChat for review. At this time, the interface will prompt [Under review] , you can update to the latest version after review;
Note: After the review, you still need to manually click release on this interface, and the latest version can be used to order after release:


After passing the review, you still need to manually submit 【Release Update】to use the latest version normally:

Note: If the release of the Mini Program version fails, a "Resubmit" review button will appear, and you can manually re-click the publish button.
4. Instructions for enterprises to open WeChat payment
Customers who need to open WeChat payment, need to upgrade the exclusive mini program first (reason: WeChat online payment, only the subject of the mini program is the same as the subject of WeChat payment, and the online payment can be carried out normally.
And turn on the switch of online payment (path: Admin background > in-sale transaction rules > payment return configuration > enable online payment capability)

4.1 Configuration 1: Funshare enterprise wallet access to third-party accounts
The products and services of Funshare Payment are supported by technical services provided by third-party payment companies. Enterprises need to access WeChat payment merchants and Alipay corporate accounts in Funshare Enterprise Wallet.
Path: Application>Enterprise Wallet>Third-party account

For details, refer to the following guidelines:
4.2 Configuration 2: Account association (AppID binding)
The initiation of WeChat payment transactions depends on the binding relationship between official account, mini program, mobile application (i.e. APPID) and merchant ID (i.e. MCHID). Therefore, after signing the contract, the merchant needs to confirm that the current merchant ID is the same as the appid of the mini program. Binding relationship can be used:
Method 1: Contact FanShare Service Tong students, and unify the binding for customers on the FanShare service provider platform;
Method 2: Refer to [Situation 1] in WeChat official documents, and perform self-binding (If it does not take effect after binding, you need to go to Method 1): https://pay.weixin.qq.com/static/pay_setting/appid_protocol.shtml
Note: The merchant ID at the time of binding must be the merchant ID generated after applying for a merchant when connecting to a third-party account in FenShare; (if the customer has independently applied for a merchant on the WeChat platform, the standard capability does not support , need to be opened separately);
4.3 Effect of online payment:
After configurations 1 and 2 are completed, you need to turn on the switch of online payment (path: management background > in-sale transaction rules > payment return configuration > enable online payment capability)

In the order list, order details, etc., online payment can be made directly (support Alipay, WeChat, bank cards, etc.)

5. Frequently asked questions
Q: Why can't I receive notifications from the OrderPass application in the service account?
A:
(1). The menu of the service number needs to be additionally configured with the application entry of Lianhutong, as the application carrier required for message delivery
(2). Service account notification template message configuration
(3). In the WeChat service account management background, the template mapping field setting
(4). You need to go to the WeChat public platform to log in to the service account to operate the mini-program of the affiliated company
Q: Why do you want to bind the authorization of the applet
A:
(1) Authorize the Mini Program to Funshare, and WeChat will automatically help the company generate a Mini Program and submit it to WeChat for review;
(2) Each function update can be automatically submitted for review, even if the review fails, it can be resubmitted for review with one click, saving time and effort.
Q: Mini Program Binding Authorization Process
A:
Step1, click to enter "Mini Program Settings-Basic Settings". If there is no mini program, please complete the mini program registration first.
Step2, jump to the WeChat applet authorization page, and the administrator of the applet that needs authorization scans the code for authorization. When selecting an official platform account, please correctly select an account of the "mini-program" type.
Step3, when authorizing, you need to confirm the permissions to be authorized. In order to ensure that various functions can be used normally after authorization, please authorize all permission sets to Funshare, and do not modify them.
Note: If the Mini Program authorized by the enterprise is not authenticated on WeChat, please go to the WeChat background to authenticate yourself and re-authorize.