手动捕获付款
要捕获订单的付款,请调用 orderPaymentCapture
变更,并将 orderId
作为输入参数传递。
手动付款捕获变更
1
2
3
4
5
6
7
8
9
10
11
mutation manualCapture {
orderPaymentCapture(
input: { orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc" }
) {
id
charges {
id
paymentStatus
}
}
}
验证支付状态
订单可以有以下状态之一:
- 未支付
- 已支付
- 部分退款
- 已退款
- 作废
在您调用以捕获支付后,您可以查询订单以查看订单的支付状态已更改为已支付。
查询订单支付状态
1
2
3
4
5
6
7
8
9
query order {
order(orderId: "order_a190981e-276a-4daf-927e-fc17f62a49cc") {
id
charges {
id
paymentStatus
}
}
}
手动付款捕获
在履行 Zonos 仪表板之外的订单时按需捕获付款。
当 延迟付款捕获 被启用时,Zonos 会在订单下达后三天自动捕获付款,或直到订单从 Zonos 仪表板发货为止。
如果您在仪表板之外履行订单,可以使用我们的
orderPaymentCapture
变更来在三天延迟期之前或在订单发货之前捕获付款,以先到者为准。