Alipay, China's leading third-party online payment solutionAlipay, China's leading third-party online payment solution

Simplified solution

System interaction flow

Simplified solution

  1. Users start to check out at the cashier of the merchant.
  2. Users open Alipay app, and then scan the QR code provided by the partner to visit the page provided by the partner to enter the payment amount.
  3. The user enters the payment amount on the payment page and then submits it to the partner server.
  4. When the partner server processes the HTTP request, it discovers the UA is from Alipay Wallet (judging from the User-Agent value enclosed in the http request header). Then the partner server places a pre-order by calling the alipay.acquire.precreate API. After receiving the payment URL (a QR code) enclosed in the response, the parter server redirects the user to visit this payment URL. From the user’s point of view, these transactions and redirection are unnoticeable, and the whole workflow is simply put as san the QR code to pay.
  5. Alipay Wallet prompts the user to confirm the order and pay. The user enters the password to complete the payment.
  6. After the payment succeeds, Alipay sends an asynchronous notification to the partner.
  7. In the meantime, Alipay notify the user of the successful payment by SMS messages.


For the simplified solution, a partner needs to complete the following steps:

  1. Integrate the alipay.acquire.precreate API to place a pre-order.
  2. Redirect users to visit the Alipay payment QR code URL.
  3. Receive the asynchronous notification of the payment result.