- #WECHAT OFFICIAL ACCOUNT API HOW TO#
- #WECHAT OFFICIAL ACCOUNT API INSTALL#
- #WECHAT OFFICIAL ACCOUNT API SERIAL#
- #WECHAT OFFICIAL ACCOUNT API UPDATE#
The most typical way is to convert the API parameters into the record type that Delphi is easy to handle. When we develop it, we need to convert the document into our Delphi program. Wechat payment API has many commands, and there are quite a lot of parameters for each command. Wechat payment official document address:
#WECHAT OFFICIAL ACCOUNT API HOW TO#
How to ensure the rapid and accurate use of delphi to realize data structure definition? Because there are so many wechat payment APIs, each API has quite a lot of parameter fields. In a word, make sure the key is correct!Ībout signature error: it must be a problem with your own program, such as case inconsistency, key inconsistency, lack of fields, etc., all of which can be solved as long as you check patiently. You can only reset the key, remember when you reset it, and it will give you the feeling of resetting the key.
If the key set in the wechat background is not recorded accurately, it will definitely not be signed correctly in the future.
Because the key in the wechat background can only be seen when it is set, it will not be visible in the future.
#WECHAT OFFICIAL ACCOUNT API UPDATE#
Especially, someone on the Internet said that it would be better to update the key in the background of wechat, which must be a fake. In Native payment, I also thought about the problem of URL signing failure.The result is that the signature always fails, and then it will be added, The signType field, which can be MD5 or HMAC-SHA256, has been forgotten in the payment signature initiated by JSAPI.Of course, there are also documents that are not very clear and need to be tried. How to ensure that the signature is correct?Īs for wechat payment signature, I have encountered many pitfalls in the development, but in the end, I summarized that I didn't sign completely according to the document. The appropriate certificate must be selected correctly in the OnNeedClientCertificate event of TNetHTTPclient the AnIndex parameter is to select the index number of the certificate!!!Ģ.For windows system, it is generally a p12 file, which can be automatically installed by double clicking
#WECHAT OFFICIAL ACCOUNT API INSTALL#
This can be realized by looking at the official documents of wechat. How to ensure the rapid and accurate implementation of data structure definition with delphi?Īs for the preparation of wechat payment, including account application, API key application and so on, we will not go into details here any more. Because there are so many wechat payment APIs, each API has quite a lot of parameter fields.How to ensure that the signature is correct?.How to realize SSL bidirectional authentication in wechat payment?.