Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the matters needing attention for sesame credit access in PHP

Shulou Source: shulou.com Published: 2022-06-03 20:19:52 10月03日 Update

Editor to share with you what sesame credit access points for attention in PHP, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

The first step is to get the authorization. This, the official SDK, can be operated as long as the parameters are configured correctly. Note the following parameters, compared with the sesame documentation

In addition, the most important point is that the sesame public key is generated and modified, and the generated public key is copied into the sesame backstage according to the official operation. After saving, the sesame will generate a new public key, click copy, save it to our public key file, and then upload it to the space for PHP call.

$request- > setScene ("test"); $request- > setChannel ("apppc"); $request- > setPlatform ("zmop"); $request- > setIdentityType ("2"); / / necessary parameters / / Construction of authorized business entry card number, name, document type; "identity_param" $request- > setIdentityParam ("{\" certNo\ ":\" $certNo\ ",\" certType\ ":\" IDENTITY_CARD\ ",\" name\ ":\" $name\ "}") / / $request- > setIdentityParam ("{\" certNo\ ":\" $certNo\ ",\" certType\ ":\" IDENTITY_CARD\ ",\" name\ ":\" $name\ ",\" mobileNo\ ":\" $mobile\ "}") / / biz_params "$request- > setBizParams" ("{\" auth_code\ ":\" M_H5\ ",\" channelType\ ":\" app\ ",\" state\ ":\" $uid\ "}") in Section 4 of "constructing Business input parameters"; / /

After the authorization is successful, it will jump to the callback address we set. The callback address GET parameter, which has a param parameter, must be decrypted using the decryption function in SDK. After decryption, the customer's OPENI_ID can be obtained.

All right, after you get the OPEN_ID, save it to the database, and the authorization is complete.

The second step

According to the authorized OPEN_ID, get the sesame score, the example in this SDK, you can run.

The most important thing is the first point.

These are all the contents of this article entitled "what are the precautions for sesame credit access in PHP?" Thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Sesame parameters business public key article generation item credit notice access importance content address official chapter certificate necessary success not so much example Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS Linux Redmi Shulou Technology