Example of php docking sesame credit crater
This article is to share with you about the example of php docking sesame credit pit. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Due to the need of the project, access Sesame Credit to authenticate users. Open the official Sesame Credit website (https://b.zmxy.com.cn/index.htm) to view the official demo. See the figure in the document.
Instantly feel the garbage of this official demo.
Attention should be paid to the following:
1. Generate the key locally, which can be generated by following the prompts
two。 Create an application in "Merchant Management", and get the public key given by the sesame credit through the key generated in the first step, and then get the key for encryption.
Note: the public key given by the sesame credit can only be copied, but the copied format is incorrect. We need to manually process 64 per line, which is consistent with the key format we generated, otherwise encryption and decryption cannot be carried out.
3. The parameters to be passed can be obtained from the document. The above figure only generates a parameter, and you need to process the data returned to generate the corresponding document.
Go directly to the code:
Thank you for reading! This is the end of this article on "example of php docking sesame credit pit". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!