WeChat applet mobile phone number authorization starts to charge

Mobile phone number quick verification component

This capability is designed to help developers apply for a mobile phone number from users, and only after the user's consent can the developer obtain a mobile phone number verified by the platform, and then provide users with corresponding services.
The difference between this capability and the mobile phone number real-time verification component is:

  1. Mobile phone number quick verification component, the platform will verify the number, but it does not guarantee real-time verification;
  2. Mobile phone number real-time verification component, the platform will perform real-time verification of the mobile phone number selected by the user at each request.

Please note:

  1. Currently, this interface is open to non-individual developers and mini programs that have completed certification (excluding overseas entities) ;
  2. When using this capability, the user can choose to bind a number, or add a number independently. The platform will verify the number based on the underlying capabilities such as SMS provided by the three major operators in China, but it does not guarantee real-time verification ;
  3. Developers are requested to judge and choose whether to use it according to the needs of business scenarios, and consider adding other security verification methods if necessary.
  4. Developers need to use it reasonably. If it is discovered or users report that the developer unreasonably requires users to provide personal information such as mobile phone numbers, which interrupts the normal use process and affects the user experience, **WeChat has the right to follow the "WeChat Mini Program Platform Operation and Management Specifications" deal with this mini program. Common violation cases and specific analysis;**

Fee Description

From August 26, 2023, the mobile phone number quick verification component will require payment. The standard unit price is: 0.03 yuan is charged for each successful component call. For more package prices, please refer to WeChat public platform - payment management. Purchasing instructions .

Please note:

  1. Experience Quota: Each Mini Program account will have 1,000 experience quotas for development, debugging and experience. The 1,000 experience quotas are shared by the official version, the trial version and the development version of the applet. After the excess, the trial version and the development version of the applet are called the same as the official version of the applet, and both charges;

  2. Free rules: There is no charge for using this capability if the subject type of WeChat account authentication is a government or non-profit organization; Mini Programs whose account type is a public institution and the category is government affairs and people's livelihood are also free of charge (WeChat authentication guidelines) ; Developers can query the WeChat authentication subject type of the Mini Program in the following two ways:

    • Enter "WeChat Public Platform->Click Mini Program Information->View Basic Information->WeChat Authentication Subject Type"
    • Enter "WeChat Public Platform->Click on the account avatar in the upper right corner->You can view basic information->WeChat authentication subject type"
  3. Validity period of resource packs: for orders purchased before August 26, 2023, the resource packs will take effect on August 26, 2023; for orders purchased after August 26, 2023, the resource packs will take effect immediately after successful payment; each resource The package will calculate the corresponding expiration time according to the validity period selected at the time of purchase;

  4. Resource usage order: by default, deduct from the experience quota first, and then deduct from the paid resource pack after the deduction is completed; if there are multiple paid resource packs, the resource packs will be expired in order of resource pack expiration time, starting with the most recently expired resource The bag starts to be buckled, and so on;

  5. Refund rules: If the purchase is wrong and the resource pack has not been officially used, you can apply for a refund within 7 days after the payment is successful. The payment will be returned from the original payment path within 3-5 working days; if the resource package has already been used (used once or more), no refund can be applied for; if more than 7 days after the successful payment, no refund application has been initiated, It is also no longer possible to apply for a refund.

Query and deduction node description

  • Query node: When the user clicks the button, a query is performed. If there is no fee for the query, the user will not be able to pull up half the screen normally, and the developer will receive the error code errno=1400001. Note: At this time, the platform will not give the user any arrears reminder on the c-side, and the developer can flexibly according to the actual situation Do front-end guidance;
  • Fee deduction node: When the developer gets the success callback information of the bindgetphonenumber event, the fee will be deducted.

Instructions

Step 1 : You need to set the value of the open-type of the button component to getPhoneNumber. After the user clicks and agrees, get the callback information through the bindgetphonenumber event;

Step 2 : Pass the dynamic token code in the bindgetphonenumber event callback to the developer background, and call the phonenumber.getPhoneNumber interface provided by the WeChat background in the developer background, and consume the code in exchange for the user's mobile phone number. Each code is valid for 5 minutes and can only be consumed once.

Note: The code returned by getPhoneNumber and the code returned by wx.login have different functions and cannot be mixed.

Notice

Starting from the basic library 2.21.2, the method of exchanging mobile phone number information in step 2 has been safely upgraded. The above is the guide for using the new method. (The old method can continue to be used at present, but developers are recommended to use the new method to enhance the security of the applet.) In addition, the new method no longer needs to call wx.login in advance to log in.

code example

<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
Page({
    
    
  getPhoneNumber (e) {
    
    
    console.log(e.detail.code)
  }
})

Return parameter description

parameter type illustrate minimum version
code String dynamic token. The user's mobile phone number can be exchanged for the dynamic token. Usage details phonenumber.getPhoneNumber interface

payment method

insert image description here
For example, 30 yuan is 30 yuan for a thousand user authorizations, which is a bit too expensive for Tencent.

Choose traffic package

insert image description here

Damn, it's so expensive. Feel free
to tell the backend that the code method needs to be upgraded. For details, please refer to
https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-info/phone-number/getPhoneNumber.html

Guess you like

Origin blog.csdn.net/qzmlyshao/article/details/131517553