DOCS

手动支付捕获

手动支付捕获

在 Zonos Dashboard 之外履行订单时按需捕获支付。

启用延迟支付捕获后,Zonos 会在订单下达后三天或从 Zonos Dashboard 发货时自动捕获支付,以先发生的为准。

如果您在 Dashboard 之外履行订单,可以使用我们的 orderPaymentCapture 变更在 3 天延迟期或订单发货前捕获支付,以先发生的为准。

手动捕获支付 

要为订单捕获支付,请调用 orderPaymentCapture 变更,传递 orderId 作为输入参数。

1mutation manualCapture {
2 orderPaymentCapture(
3 input: { orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc" }
4 ) {
5 id
6 charges {
7 id
8 paymentStatus
9 }
10 }
11}

验证支付状态 

订单可以具有以下状态之一:

  • UNPAID
  • PAID
  • PARTIALLY_REFUNDED
  • REFUNDED
  • VOIDED

调用捕获支付后,您可以查询订单以查看订单的支付状态已更改为 PAID。

1query order {
2 order(orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc") {
3 id
4 charges {
5 id
6 paymentStatus
7 }
8 }
9}
GraphQL API ReferenceTypes, inputs, and operations used in this guide
Book a demo

Was this page helpful?


在此页面: