Buy Bmob applet source configured to use documentation

Disclaimer: This article is the original article, please indicate the source transfer (http://blog.csdn.net/kesixin) https://blog.csdn.net/kesixin/article/details/80601977

Buy Source

  • In the URL field enter https://www.bmob.cn/shop/index or enter Bmob search in Baidu, open Bmob official website, click on the Source column. Here it is based on the complete project Bmob back-end cloud development, project source code is available after purchase, the cloud database table design and documentation.

  • Automatically create the application source code in Bmob console after purchase, you can view purchases, download the source code and documentation in the source column.

Registered account, create a small program

  • First registered in the micro-channel public platform for an account, choose a small program, After registering you can log public platform management applets, including small program named types.

Configuring security domain

  • Bmob into the console to find the corresponding application, click Apply to Go to Settings -> application configuration, you can see the small micro-channel application server domain configuration.

  • Log in micro-channel public platform, in the Settings -> Configure develop inside this figure several domain names to fill micro-channel public platform server domain name, set up https domain name, such as Bmob application is not on file in a separate domain, downloadFile legitimate domain name can not fill.

Authorization applet

  • Bmob into the console to find the corresponding application, click Apply to Go to Settings -> application configuration, you can see the micro-channel service configuration applet account, click immediately authorized the use of micro-channel public platform administrators to scan two-dimensional code authorization.

  • Into the micro-channel public platform, Go to Settings -> Development set up, build AppSecret (applet key), copy and paste to AppSecret key input field on the map, click Save.

Initialization Bmob SDK

  • After downloading open source code with a micro-channel web developer tools project, enter AppID, click OK to create the project. Application ID and then configure the app.js the REST API KEY, Application ID and REST API KEY console application provided Bmob -> application key

Upload Code

  • SDK after initialization is complete, completes the configuration of the whole project, so that you can test it on the micro-letter web developer tools. If the project after testing is complete, the code can be uploaded to the micro-channel public platform for review.

  • After the upload is complete you can submit audited version micro letter public platform in the development of management, after review by the applet can be above the line.

Applet pay

  • You need a small program launched micro-channel micro-channel payment platform, and then fill in the number of businesses in the console application configuration, the merchant payment key, the current applet pay Bmob platform does not charge any fees, as long as the platform is Bmob paying members, and through the real-name account certification can be used.

Guess you like

Origin blog.csdn.net/kesixin/article/details/80601977