This document mainly describes the custom transaction component access process and matters to be noted to help operations/Business people better understand the access logic and process, efficient and smooth access components, to achieve video number live with goods.

# Access process


The complete access to the custom version of the transaction component requires the above four parts, 15 steps, in each step needs to complete the corresponding action.


# Pre-Process: Access Preparation

# Check whether the standard version is enabled

inWeChat Public PlatformLog in to the Mini Program and check the "Trading Components" menu to see if the standard trading components are enabled.Choose between standard and custom trading components. The following figure shows that the standard version of the trading component has been enabled.


If you have opened the standard version of the transaction components, but did not complete the opening task, you can cancel the use, as shown in the figure below, if the opening is completed, you need to wait for the logout function. (Currently there is no logout function)


# 1: Complete the custom version of the transaction component opening application

# 1.1 Request access

Register the mini program on WeChat Official Platform, fill in the information and submit the relevant materials according to the guidelines, complete the registration process, if you have a mini program, you can use it directly. Go toRegister Mini Program

If the Mini Program meets the access requirements for the custom version of the transaction component, theWeChat Public PlatformLog in to the Mini Program and you will see the interface shown below:


Select the custom version of the transaction components, and apply for opening functions, enter the audit process. Businesses can also apply for access by calling the interface to open the function, the application and review will see the following interface.

# Note: Here the application review time is 1-2 business days, if the callback interface has been connected, you will receive a callback.

After the application is approved, the Mini Program developer needs to invoke the custom version of the component interface, which contains:

  • a. Product-related interfaces: add goods, modify goods, goods on the shelves, goods off the shelf, goods update, etc.
  • b. Order-related interfaces: generating orders and tickets, order status synchronization, order acquisition, etc.
  • c. Aptitude related interface: brand aptitude upload, category qualification upload, product qualification upload etc.
  • d. Logistics and after-sales interface: logistics information synchronization, after-sales single generation, after-sales situation synchronization, etc.
  • and. Event callback interface: for receiving product audit, category audit, brand audit results synchronization, etc.
# Note: All interfaces need access and debugging

# 2: Complete the interface call

# 2.1 Business code development

By the business to use the development tools for development, or to the service market to purchase service providers on behalf of the development services. The development process and code details can be found in the Custom Trading Components section of the documentation catalog.


# 2.2 Category of Application/Brand qualification, upload goods, complete product interface call

After the interface is tuned, you can upload and audit the goods, and the audit status will be notified to the merchant. (Be sure to access the goodsAudit callback interface

Add the product flow as follows:

# Note: Products need to apply for category or brand qualification in advance
# Note: Business students are advised to prepare all the product categories or brand qualification materials needed in the live broadcast program. For details, please check[Introductions](https://developers.weixin.qq.com/doc/ministore/minishopspecification/introduction.html#% E 4% B 8%80% E 3%80%81% E 5% BE%AE%E 4% BF%A 1% E 5% B 0%8 F%E 5%95%86% E 5% BA% 97% E 5% BC% 80% E 6%94% BE%E 7% B 1% BB%E 7%9 B%AE%E 4% B 8%8 E%E 8% B 5%84% E 8% B 4% A 8% E 8% A 6%81% E 6% B 1%82 )Read it carefully and map it to your business product

After the product steps are completed, click Finish, the status will be changed, and the merchant will see the following interface:


# 2.3 Debug payment checkout, complete order interface call

By the development of the students refer to the order-related interface and order related development guidelines call, two interfaces, successful call, click the order interface to complete the on, access process state will become completed, otherwise it will remind failure.

The payment process is:

# Note: Both interfaces need to be invoked to synchronize the order result as the final confirmation step.
# Note: the basic library to pull up the cashier interface after the transformation needs to send version can take effect.
# Note: After completing the interface call, click Finish to toggle the status.

Call by the developer referring to the logistics related interfaceOrder Delivery InterfaceSuccessful call, click the logistics interface completion on, access to the process state will become completed, otherwise it will remind failure.

# Note: You need to call theGet Express Company ListThe interface fills the parameters of the shipping interface with the correct courier company.

# 2.5 Debug after-sales interface, complete after-sales interface call

Development students need to callAfter-sales interfaceWill produce after-sales orders after-sales information circulation, synchronization. After completion of the call, click on the after-sale interface completion on, access to the process state will become completed, otherwise it will remind failure.

callSynchronous after-sales interfaceSynchronous after-sales


# 2.6 Verify that the Mini Program has been tested and debugged

After completing the interface docking, the developer needs to test and debug the interfaces of the Mini Program. No interface needs to be called at this point. After confirmation, click the Finish on, and the process state will become completed.


# 2.7 Interface debugging completed, need to confirm Mini Program has been released

After completing the interface docking and product upload, submit the code to the WeChat team for verification, after the verification can be released, at this time the payment verification is officially effective, At this time do not need to call any interface, the following figure is a hint, if still not available, please check the release time, if the release version is before access, you need to re-release the modified code after the completion of access:


# At this point, the custom version of the transaction component has completed the access, access, you are eligible to apply for and use WeChat official open each scene, In these scenarios, you need to follow the requirements of the above process to import goods, generate orders, synchronous order, synchronous after-sales, synchronous logistics, etc., otherwise it will be regarded as a violation, will receive the corresponding violation punishment, severe cases will not be able to use all kinds of sales scenarios.


# Note: After accessing the custom version of the transaction components, you need to complete the product upload and audit, otherwise it will delay the live broadcast plan, because the preparation of product materials and product audit need to take 1-10 working days.


# 3: Complete scene access

# 3.1 Request Scenario Access

Go to the WeChat Official Platform, enter the "transaction component">"Scene access" menu, view and select the scene that needs access, WeChat official default all scenes are access.

If you can already bind the video number scene, and can use the promoter function, you will see the interface shown below:

Will be set as a member of the Mini Program promoters, the employees can be bound in their own video number, and live with goods.


Of course, there are situations where you can't use the scene. In this case, the interface will show the reason why it can't be used. If you have any objections, you can ask the customer service in the upper right corner, or click the re-audit on.

# 3.2 Follow the guidelines to access the scene

After the scene can be accessed, it is accessed according to the requirements of different scenes. Such asVideo Number Access Guidelines

# Note: scene access needs to develop according to the scene value, do a good job to determine whether the check logic.

# 4: Scene sale

# 4.1-4.5

When the user orders in the sales scene that needs verification, the merchant needs to call the interface to complete the order generation and status synchronization, otherwise it will not be able to pull up the cashier to complete payment.

# At this point, the business completed the whole Mini Program access to custom version of the transaction components, complete the scene access, the completion of the scene sale process.


# Note

# 1 Custom version of the transaction components and video number live with the relationship between goods

The custom version of the transaction component is the basis for the Mini Program to carry out the live video number. And through the video number live with the audit of the scene, the Mini Program can bind video number and live with goods permission.

# 2 How to Use Custom Trading Components in Live Video Number Delivery

After binding video number, the video number with goods list can only be pulled to the goods uploaded through the custom version of the transaction component and passed the audit. When the user orders in video number scene, The Mini Program needs to call the transaction component of the single interface, in accordance with the requirements of the user to complete the payment purchase, payment and purchase, the need to update the logistics and after-sales situation according to the requirements, any orders generated in the live broadcast are live orders.

# 3 How to deal with the goods that are not uploaded in the live video number

Use the order interface to upload the required items in the order in real time according to the requirements, In accordance with the custom version of the transaction component of the order process and check the order, after the payment can be completed, in between, the goods do not need to be reviewed in advance.

# 4 The specific meaning of scene audit

Users only need to upload the goods used in the scenario, and order in accordance with the requirements of the custom version of the transaction component.

# 5 After sales and logistics interface, order synchronization interface can not be phased docking

Because all orders generated by custom components are displayed in the "Discover">"Mini Program">"Order Center" and "Live Room">"List of products">"Order" entry to display, to ensure the consistency of the user experience, the interface needs to be synchronized access.

# 6 Testing of goods, orders, etc.

Product upload, order generation, etc., do not depend on the environment, by the developer's own decision, can be in the formal environment, can also be in test environment upload, generate. Through the pull interface of goods, orders, etc., you can see your goods and orders. Video number live with goods test needs to be tested in a formal environment, it is recommended that when the number of users is less, with a white list live way to test.

# 7 Handling of Purchase Behavior by Users through Additional Purchase or Repurchase

The component validates orders only in scenarios where validation is required, making no distinction between purchases/Business logic, that is, no matter what the settlement method, as long as it is not a limited purchase scenario, there is no need to verify the order.

# 8 What is the difference between the definition and usage of Sharer and Promoter?

The promoter is the role of the Mini Program set up to bind the Mini Programs and sell their products. A Mini Program can only be bound and unbound twice in a year.Click to see the specific rulesThe order will be recorded, and the Mini Program can subcommission it.Click to view the transaction record acquisition

Sharer is the role of the live room under the specified video number (which has been bound to the Mini Program) set by the Mini Programs. A Mini Program can have up to 10,000 members, and a share can bind up to 5 Mini Programs, and the time interval between binding and unbinding should be more than 30 days.Click to see the specific rulesAfter sharing, the orders will be recorded and the Mini Program can share the commission.Click to view the transaction record acquisition