Square Checkout 出错 API - "The order has expired"

Error with Square Checkout API - "The order has expired"

当用户点击时从 checkout 端点收到此错误 (category: INVALID_REQUEST_ERROR code: ORDER_EXPIRED),然后几天后返回付款。这是获取订单信息并为用户提供唯一结帐 URL 的端点。

订单在过期前还有多长时间?我什至不清楚到底什么会过期?

在 post 中发送的内容不多。试图确定我是否只需要更改幂等键 "if an order has expired",这似乎适得其反。

$this->_order = ['redirect_url'              => $redirectUrl,
                 'idempotency_key'           => $this->_idempotencyKey,
                 'ask_for_shipping_address'  => false
        ];

$this->_order['order']['reference_id'] = (string) "{$this->getInvoice()->getId()}";

结帐网址将在 24 小时后过期。 Square 正在努力更新文档以反映此信息。