> For the complete documentation index, see [llms.txt](https://resources.atriptech.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://resources.atriptech.com/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/zhi-fu-yu-chu-piao.md).

# 支付与出票

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

用这页完成支付，并等待出票结果。

### 主要 API

* `pay.do`

### 适用场景

* Deposit 支付
* VCC 透传支付
* BYOA 支付
* MoR 支付
* 支付后的出票跟踪
* VCC 失败后的混合支付重试

### 调用前先确认

先检查：

* 订单已创建
* 订单仍未支付
* 订单支持所选支付方式
* 若使用银行卡支付，卡数据已准备好
* 若使用 VCC，已从 Search / Verify / Order 确认 `VendorFare` 支持透传

标准流程中，应先调用 `order.do`，再调用 `pay.do`。

### 支付方式

* `1`：Deposit
* `3`：VCC passthrough
* `4`：BYOA
* `5`：MoR

### 关键输入

始终发送：

* `orderNo`
* `paymentMethod`

以下场景还需发送 `creditCard`：

* VCC passthrough
* MoR

以下场景还需发送 `supportCreditTransPayment: "1"`：

* VCC passthrough

`threeDS.ip` 只与 MoR 有关。

### 需要关注什么

* 支持的支付方式因航司和票价而异
* 卡品牌必须满足订单要求
* VCC 透传要求的账单地址字段，取决于航司
* 超过支付时限会导致失败
* 支付成功不代表出票已完成
* `pay.do` 成功，不代表航司已成功扣款
* 航司拒付后，原订单可能自动取消
* 混合航司或混合出票通道场景，可能无法一次完成 VCC 支付
* 在确认最终出票状态前，仍需继续跟单

### 最佳实践

* 支付前先从预订流程读取支持的支付方式
* 需要支付后价格保障时优先用 deposit
* 只有票价支持时才用 VCC
* 使用 VCC 时，同时传 `paymentMethod: 3` 和 `supportCreditTransPayment: "1"`
* 账单地址字段不全时，不要直接重试，先补齐后再发起支付
* 支付后持续轮询订单状态直到出票完成
* 同时监听 webhook，识别航司拒付或自动取消
* 谨慎处理支付重试，避免重复扣款

### 常见失败场景

常见支付失败包括：

* 请求数据无效
* 超过支付时限后支付
* 不支持该支付方式
* 订单已支付
* 支付仍在处理中
* 乘客数据缺失
* 卡不受支持
* 卡信息不匹配
* FR 流程中订单尚未确认

业务判断以 API 响应中的 `status` 为准。

### 相关页面

* [创建订单](/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/chuang-jian-ding-dan.md)
* [确认订单](/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/que-ren-ding-dan.md)
* [查询订单](/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/cha-xun-ding-dan.md)
* [混合支付指南](/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/zhi-fu-yu-chu-piao/hun-he-zhi-fu-zhi-nan.md)
* [错误码](/api-wen-dang/pai-zhang-yu-zhi-chi/errors-handing.md)
* [预订 API](/api-wen-dang/api-can-kao/yu-ding-api.md)

### 完整 API 参考

接口级详情见：

* [支付与出票](/api-wen-dang/api-can-kao/yu-ding-api/zhi-fu-yu-chu-piao.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resources.atriptech.com/api-wen-dang/readme/yu-ding-liu-cheng-gai-lan/zhi-fu-yu-chu-piao.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
