Pay flow


image

  1. Merchant POS create a purchase order when user places an order in cashier.
  2. User open Alipay wallet and click "Payment" button to display the payment barcode/QR code.
  3. The cashier uses a barcode scanner to scan the barcode/QR code. The scanner will return the decoded barcode to Merchant POS. Merchant POS will need to determine which Alipay wallet is used for the payment by sending a request to API /hk/payments/codeConsult with codeValue (decoded barcode value) in AlipayHK backend. AlipayHK backend will then reply a result message with pspSiteName (Alipay_HK, Alipay_CN or Others Alipay A+ Wallet). Merchant POS will have to save the Alipay Wallet used in the payment.
  4. If Alipay_HK wallet is used, Merchant POS will create a payment request in AlipayHK APS format and dispatch the request to API /v1/payments/pay.
    1. Alipay_HK returns the payment result.
    2. Alipay_HK returns the asynchronous notification to the merchant.
    3. Merchant POS sends to Alipay_HK an acknowledgement message to confirm that the payment notification is received
  1. If Alipay_CN wallet is used, Merchant POS will create a payment request in MAPI format and dispatch the request to API alipay.acquire.overseas.spot.pay. For integration details, please refer to https://global.alipay.com/docs/ac/globalbarcode/introduction.
  2. If other Alipay A+ wallet is used, Merchant POS will create a payment request in Alipay+ APS format and dispatch the request to API /v1/payments/pay. For integration details, please refer to https://global.alipay.com/docs/ac/ams_upm/introduction.