Integration process
Alipay H5 page integration is used to perform online real-person authentication on your H5 web pages. This topic describes how to integrate the financial-grade real-person authentication service using an Alipay H5 page.
Overview
This solution requires you to set up a server and a web page.
The following sequence diagram illustrates the Alipay H5 page integration process.
System Call Timing Description Table
Step | Description |
1 | The user starts the authentication process. |
2 | The application server sends an authentication request to the Alibaba Cloud server. |
3 | The Alibaba Cloud server returns an authentication ID and an authentication URL to the application server. |
4 | The application server passes the authentication ID and authentication URL to the web page. |
5 | The web page calls the Alipay Open Platform capabilities. |
6 | The Alipay Open Platform capabilities send the authentication materials submitted by the user to the Alibaba Cloud server. |
7 | The Alibaba Cloud server determines the authentication result based on the materials. |
8 | The Alibaba Cloud server returns the authentication result to the Alipay Open Platform capabilities. |
9 | The Alipay Open Platform capabilities use a callback function to instruct the web page to retrieve the authentication status. |
10 | The web page queries the application server for the authentication status. |
11 | The application server sends a query to the Alibaba Cloud server. |
12 | The Alibaba Cloud server returns the authentication result to the application server. |
13 | The application server returns the authentication result to the web page for display. |
Procedure
- Note
When adding a verification scenario, you can authorize Alibaba Cloud to access a specified OSS bucket to store images from the verification process. For more information, see Activate and authorize OSS storage.
Integrate with the Alipay H5 page.
Call the server-side initialization API. You can choose one of the following methods.
Integrate financial-grade real-person authentication on the server by using a native HTTPS-based call. For more information, see Native HTTPS-based call.
Integrate financial-grade real-person authentication on the server by using an SDK. For more information, see SDK-based integration.
NoteAlibaba Cloud provides SDKs for multiple languages. We recommend using an SDK for server-side integration, as it simplifies development by handling HTTPS request construction and signature algorithm implementation.
Integrate the service into your client-side H5 page.
For detailed steps, see In-app integration with an Alipay H5 page or External invocation of an Alipay H5 page.