# 支付错误

{% hint style="info" %}
遇到 API 接入问题时，可登录 [Eva](https://www.atriptech.com/) 寻求帮助。
{% endhint %}

当 `pay.do` 失败时，使用这个页面。

### 高频错误码

#### `401` Time out of payment

支付发生在支付截止时间之后。

**处理建议**

* Regenerate the order or create a new booking

#### `402` / `404` Order status does not support payment or order already paid

订单已支付、出票中或已出票。

**处理建议**

* Query the order first
* Do not send duplicate payment requests

#### `403` Unsupported payment method

当前票价或航司不支持该支付方式。

**处理建议**

* Switch to another supported method
* Check supported payment fields before payment

#### `406` Payment operation is in progress

之前的支付请求仍在处理中。

**处理建议**

* Wait and poll order status
* Avoid duplicate retries during in-flight payment

#### `407` Incorrect passenger information

订单数据未通过航司支付校验。

**处理建议**

* Check passenger fields
* Rebuild the order if required

#### `409` Additional baggage does not match the segment

附加服务和订单航段不一致。

**处理建议**

* Re-check segment-specific `productCode`

#### `411` Generic payment error

Atlas 因账户或结算问题无法完成支付。

**处理建议**

* Check balance
* Check payment inputs
* Retry only after validation

#### `413` Card is not supported

该场景不支持当前卡类型。

**处理建议**

* Use a supported card brand

#### `414` Card mismatch

支付卡类型与前序流程中的卡类型不一致。

**处理建议**

* Use a consistent card type across order and payment

#### `415` Order is not confirmed by user

在 FR 流程中常见，通常是因为没有先完成 `orderCommit.do`。

**处理建议**

* Complete order confirmation first
* Then retry payment

### 推荐排查顺序

1. 重试支付前先查询订单
2. 检查支付截止时间和订单状态
3. 确认支付方式是否支持
4. 校验乘客信息和附加服务数据
5. VCC 被拦截时，考虑改用 deposit

### 相关页面

* [支付与出票](https://resources.atriptech.com/api-wen-dang/ji-cheng-zhi-nan/yu-ding-liu-cheng-gai-lan/zhi-fu-yu-chu-piao)
* [支付](https://resources.atriptech.com/api-wen-dang/pai-zhang-yu-zhi-chi/faqs/atlas-api-payments)
* [查询订单](https://resources.atriptech.com/api-wen-dang/ji-cheng-zhi-nan/yu-ding-liu-cheng-gai-lan/cha-xun-ding-dan)
