> ## Documentation Index
> Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 延迟交易

延迟交易，也称为“离线交易”或“存储转发”（store & forward），让终端在与服务器没有通信时仍能继续提供服务。

## 工作原理

终端会将交易数据保存在持久性存储中，并在通信恢复后发送以进行在线批准。EMV Core 会先执行基本的卡片认证。如果认证通过，EMV Core 会先向主机返回 `TransactionComplete` 事件，然后再请求在线授权。

要在 Android 上使用延迟交易，请在 [`PreAuthorize`](/docs/zh/integrate-pos-device/emv-core/sdk-methods-functions/payment-1#preauthorize) 中设置 `isDeferred=true`。在 JSON API 中，同一参数名为 `deferred`。

该参数在 SDK v1.5 中引入，取代了 [`PMT_ACCEPT_OFFLINE`](/docs/zh/integrate-pos-device/emv-core/emv-core-configuration#管理设置) 配置属性。`PMT_ACCEPT_OFFLINE` 已弃用，不再影响 EMV Core 的行为。

## 最终金额要求

在 SDK v1.5 中，仅当 `isFinalAmount=true` 时才支持延迟授权。在此条件下：

* EMV Core 会将交易数据保存在内存中，并在条件允许时发送到服务器。
* 交易的授权金额与结算金额相同。
* 之后无需调用 `ConfirmTransaction`。

<Warning>
  启用此功能存在部分交易无法获得批准的风险。请仅在无法中断服务的场景中使用，例如停车、储物柜或公共交通。相关风险和责任由运营方承担；对于任何未获批准的交易，Nayax 不承担责任。
</Warning>

## 下一步

<CardGroup cols={2}>
  <Card title="PreAuthorize API" icon="code" href="/docs/zh/integrate-pos-device/emv-core/sdk-methods-functions/payment-1#preauthorize">
    PreAuthorize 的 API 参考，包含用于触发延迟交易的 isDeferred 和 isFinalAmount 参数。
  </Card>

  <Card title="配置参数" icon="gear" href="/docs/zh/integrate-pos-device/emv-core/emv-core-configuration#管理设置">
    配置参考。已弃用的 PMT\_ACCEPT\_OFFLINE 参数位于页面下方的参数表中。
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.