For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
HomeGuidesAPI Reference
HomeGuidesAPI Reference
  • API 开发
    • API 快速入门
      • API 调用和支付流程
      • 创建结账
      • 直接捕获
      • 授权和捕获
      • 退款
    • 认证
    • 重复支付Recurring Payments
  • 在线 API
LogoLogo
On this page
  • 1. 捕获
  • 2. 更新配送快递
API 开发API 调用和支付流程

2a. 直接捕获

Was this page helpful?
Previous

授权和捕获

Next
Built with

资金在下单时捕获


这个流程完成支付批准,启动客户的支付计划,并将全部订单金额与商户结算 - 所有这些作为一个组合操作。

所有平台都支持直接捕获

1. 捕获

  • POST /v2/payments/capture

捕获支付

如果您预计能够履行订单,请使用带有 token 的捕获调用来完成支付。您必须在从创建结账调用收到令牌后的 180 分钟内进行此调用。捕获调用是幂等的,因此在 24 小时内使用相同的唯一 requestId 重试请求是安全的。

2. 更新配送快递

  • PUT /v2/payments/{orderId}/courier 当订单发生配送时,使用快递 API 调用向 Afterpay 发送每个配送的跟踪信息。