Home  >  Article  >  WeChat Applet  >  Detailed introduction to cold knowledge about WeChat development (picture)

Detailed introduction to cold knowledge about WeChat development (picture)

黄舟
黄舟Original
2017-05-10 11:19:072062browse
  • Preliminary work for WeChat public platform development

Detailed introduction to cold knowledge about WeChat development (picture)

##Preliminary work for WeChat development

As shown in the figure, URL (network link for signature verification), Token,
JSInterfaceSecurity fields are required, and among them URL and Token are required, and before configuring them, you must first upload the signature verification code to your development server. Otherwise, no matter how you submit the interface configuration information, it will only prompt a configuration failure. The URL mentioned earlier is the network path to access the signature verification code. The signed code is provided in WeChat development documents:

Detailed introduction to cold knowledge about WeChat development (picture)
WeChat signature verification code

    Use WeChat Development tools
  • Debugging
    , you need to add the developer WeChat ID to the list of developer test accountsIf the project you need to debug requires authorization operations, you must log in to the one you currently belong to WeChat public platform adds your WeChat account to the list of becoming a developer test account.

Detailed introduction to cold knowledge about WeChat development (picture)
Added to developer test account list 1.0

Detailed introduction to cold knowledge about WeChat development (picture)
Add to developer test account list 1.1

If you do not perform this operation, you cannot debug on the WeChat development tools:


Detailed introduction to cold knowledge about WeChat development (picture)
Paste_Image.png

    WeChat webpage calls JS
  • API
    Payment
  • First, you must place an order uniformly, and the order is placed successfully The corresponding
json

will be returned:

Detailed introduction to cold knowledge about WeChat development (picture)
Paste_Image.png

After the unified order is successfully placed, call: getBrandWCPayRequest The interface activates the WeChat payment plug-in to realize payment;

The process is like this, but this cannot fully activate WeChat payment, and the following pitfalls will appear:

Detailed introduction to cold knowledge about WeChat development (picture)
Paste_Image.png

The reason for not registering is that the payment module of your official account platform has not authorized the directory of your page to be the payment authorization directory (that is, to register this payment page), as follows :

Detailed introduction to cold knowledge about WeChat development (picture)##Paste_Image.png

##Paste_Image.pngDetailed introduction to cold knowledge about WeChat development (picture)

The above is the detailed content of Detailed introduction to cold knowledge about WeChat development (picture). For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn