WeChat Docking Official Payment Documentation
Provide the following information about WeChat Pay:
- Bind the APPID of the payment
- Merchant Number MCHID
- Merchant Payment Key KEY
- APPSECRET for the public
Parameters in the mail | API parameter name | particular |
APPID | appid | appid 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 Number | mch_id | A merchant collection account assigned by WeChat Pay after the merchant applies for WeChat Pay. |
API key | key | The 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 |
Appsecret | secret | AppSecret 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
Microchip MCHID(Note: This is on WeChat Pay, not the WeChat Public Platform)
WeChat MCHKEY(If you don't know, reset. Don't guess.)
Note: After getting all four parameters, configure the web authorization domain and JSAPI payment domain name
Web Authorization Domain Name
JSAPI Domain Settings
Product Center->JSAPI Payment->Product Settings->Payment Configuration->Add JSAPI Payment Authorization Directory
Configure the payment domain:
Product Center-> Development Configuration-> Payment Configuration-> Public Payment-> Add JSAPI Payment Authorization Directory