WeChat Payment Documentation (most detailed tutorial configuration)

WeChat Docking Official Payment Documentation

Provide the following information about WeChat Pay:

  1. Bind the APPID of the payment
  2. Merchant Number MCHID
  3. Merchant Payment Key KEY
  4. APPSECRET for the public
Parameters in the mailAPI parameter nameparticular
APPIDappidappid is the unique identification of WeChat public account or open platform APP, after applying for a public account on public platform or APP account on open platform, WeChat will automatically assign the corresponding appid to identify the app. It can be viewed in WeChat Public Platform->Development->Basic Configuration, and the merchant's WeChat Payment approval email will also contain this field value.
WeChat Pay Merchant Numbermch_idA merchant collection account assigned by WeChat Pay after the merchant applies for WeChat Pay.
API keykeyThe key that generates the signature during the transaction process is kept only in the merchant system and WeChat Payment backend, and will not be transmitted in the network. Merchants keep the Key properly, do not transmit it in the network, and cannot store it in other clients to ensure that the Key will not be leaked. Merchants can log in to the WeChat Merchant Platform to set up the key according to the email prompts. You can also set it according to the following path: Weixin Merchant Platform (pay.weixin.qq.com)->Account Center->Account Settings->API Security->Key Setting 
AppsecretsecretAppSecret is the interface password corresponding to the APPID for theGet interface call credentialsaccess_token is used when In WeChat Payments, it is first passed through theOAuth2.0 interfaceGet the user openid, this openid is used for WeChat web payment mode order interface. You can login to public platform->WeChat Payment to get AppSecret (you need to be a developer and your account has no abnormal status).

Step 1: Configure the four parameters of WeChat APPID, WeChat APPSECRET, WeChat MCHID and WeChat MCHKEY
Step 2: Configure IP whitelisting, web authorization domains, JSAPI payment domains

microsoftAuthorized Login and WeChat Payment Parameter Configuration

Step 1: ConfigurationWeChat APPID,Microsoft APPSECRET,Microchip MCHID,WeChat MCHKEYFour parameters

Step 2: Configure IP whitelisting, web authorization domains, JSAPI payment domains

WeChat APPID,Microsoft APPSECRET,IP whitelisting

Image [1]|WeChat docking official payment document detailed tutorial configuration

Microchip MCHID(Note: This is on WeChat Pay, not the WeChat Public Platform)

Image [2]|WeChat docking official payment document detailed tutorial configuration

WeChat MCHKEY(If you don't know, reset. Don't guess.)

Image [3]|WeChat docking official payment document detailed tutorial configuration

Note: After getting all four parameters, configure the web authorization domain and JSAPI payment domain name

Web Authorization Domain Name

Image [4]|WeChat docking official payment document detailed tutorial configuration

JSAPI Domain Settings

Product Center->JSAPI Payment->Product Settings->Payment Configuration->Add JSAPI Payment Authorization Directory

Image [5]|WeChat docking official payment document detailed tutorial configuration

Configure the payment domain:

Product Center-> Development Configuration-> Payment Configuration-> Public Payment-> Add JSAPI Payment Authorization Directory

Image [6]|WeChat docking official payment document detailed tutorial configuration
Image [7]|WeChat docking official payment document detailed tutorial configuration
Image [8]|WeChat docking official payment document detailed tutorial configuration
Image [9]|WeChat docking official payment document detailed tutorial configuration
Image [10]|WeChat docking official payment document detailed tutorial configuration
Image [11]|WeChat docking official payment document detailed tutorial configuration
------ This page is closed, please share if you like ------

Thanks for visiting, get more great articles please bookmark this site.

© copyright statement
THE END
If you like it, support it.
kudos6 share (joys, benefits, privileges etc) with others