- 预授权阶段
- 最终授权与结算阶段
交易流程
要理解延迟交易流程,请参考以下事件顺序:绿色区域内的步骤为在线执行,红色区域内的步骤为离线执行。

- After the client application (POS) performs its
doPeriodic()to settle the stored card transactions. setConfig()会将设备切换为使用离线模式的延迟工作模式。- The POS sends a
doTransaction()request to the Nayax Device, triggering a new transaction. - 持卡人轻触其非接触式卡片。
- The Nayax Device checks for “Deferred pre-conditions” and, upon approval, returns the transaction result as
Approved->Pending. This means the transaction is approved.延迟模式的工作完成后,继续执行第 6 步。 - 客户端应用程序调用
setConfig(),将离线模式设置为 false。 - 客户端应用程序调用
authorizePendingTransactions(),将待处理交易发送给 Nayax 设备,请求对其进行结算(但此时尚未执行结算)。 - Nayax 设备与 SHVA 通信,以发起待处理交易的授权。
- 交易结果被返回给设备。
- 交易结果被返回给客户端应用程序。
- The flow concludes with a final
doPeriodic()call from the client application, to settle all authorized transactions.