A. User Authorization
A1. Authorize through AlipayHK app
- User triggers authorization request in Merchant's App.
- Merchant gets authorization URL from AlipayHK's backend.
- AlipayHK's backend returns the authorization URL.
- Merchant opens the authorization URL (redirects to AlipayHK app).
- AlipayHK displays T&C and confirmation page to the user.
- User agrees T&C and confirms authorization.
- AlipayHK returns authorization code to merchant.
- Merchant uses the authorization code to apply access token.
- AlipayHK returns access token to merchant.
- Merchant stores the tokens and redirects user to the result page.