Ou trouver api key wechat payment12/31/2023 Use the private key to sign the merchant signature.In order to ensure that the use of the API is not affected during the certificate replacement process, the request and response must contain the certificate serial number to declare the certificate used for signing or encryption. In some cases, like when the private key is divulged, the certificate needs to be updated. Please refer to Guide for Upgrading WeChat Pay API Certificate (Technical Personnel) if you have been connected and have used the certificate issued by WeChat Pay.Ĭall the platform certification API to obtain the certificate from the WeChat Pay platform.New merchants please refer to What is the API certificate? How to get the API certificate?. Do not expose the private key in public, such as uploading to Github or writing in client code. The merchant private key must be kept properly. The private key can only be exported through the certificate tool. Merchants need to download the certificate tool to generate the certificate request string, and submit the certificate request string to the merchant platform to obtain the merchant API certificate. WeChat Pay REST API currently only supports certificates issued by a certificate authority (CA). We highly recommend that the merchant use the public key contained in the WeChat Pay platform certificate to verify the signature of the response. The process result response of the API will also include signature information. In that case, the error “401 Unauthorized” will be returned. Requests that do not carry a signature or with failed signature verifications will not be executed. For details, please refer to Sign Signature Generation Method. The signature information of the request is transmitted through the http header authorization. The merchant needs to use its private key to sign the combination of key data such as API URL and message body with SHA-256 with RSA. The WeChat Pay REST API verifies the identity of the merchant and the integrity of the data by verifying the signature of the request. The message body of the request and response must be in the JSON format. WeChat Pay REST API is an http API designed in a RESTful style.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |