The cashier’s POS communicates with the merchant server and sends payment request to Alipay server. The merchant server receives the payment result from Alipay and relays it back to the cashier.
The barcode pay has two flavors: password-free payment and password-validation payment.
The processes are as the following:
Barcode payment: password-free flow
Barcode payment: password-validation flow
When we encounter the network or system exceptions in rare cases, the merchant will need to cancel the payment. The flow is as the following:
Note:
1. If the system prompt to in the process of cancel, we would suggest to retry with a time interval of 5 seconds or more. If the retry fails more than 5 times, we should abandon the retry and check the network and the system.
The refund flow is as the following: