For the complete documentation index, see llms.txt. This page is also available as Markdown.

捕获付款请求

本文档介绍了用于接收付款的服务器端 API。交易授权后,请使用此端点完成付款流程。

端点

方法:POST

沙盒

https://sandbox.codapayments.com/airtime/api/restful/v2.0/Payment/capture

生产

https://airtime.codapayments.com/airtime/api/restful/v2.0/Payment/capture

请求正文

请求体必须以 JSON 格式发送,并包含以下参数:

capturePaymentRequest.apiKey

string

您的 Coda API 身份验证密钥。

capturePaymentRequest.projectId

string

项目的唯一标识符。

capturePaymentRequest.txnId

string

需要捕获的与该笔付款相关的交易 ID。

示例请求

{
  "capturePaymentRequest": {
    "apiKey": "your_api_key_here",
    "projectId": "your_project_id",
    "txnId": "123456789"
  }
}

回复

请求成功后,会返回确认信息,表明捕获请求已被确认。

示例回复

最后更新于

这有帮助吗?