是否有一种方法可以使使用Square Checkout API生成的Square Checkout URL无效?我当前的C#项目使用square dotnet SDK调用Checkout API并等待用户付款,然后在付款完成后开始。我不希望用户没有完成订单并且永远不会被重定向到确认URL,所以我希望实现一个超时,如果用户在特定的时间内没有付款,整个交易将被取消。下面是我的伪代码描述:
URL = CallCheckoutAPI(locationId, order);
OpenBrowser(URL);
Success = WaitForPayment(timeoutDuration); //Returns true if payment completes,
//false on timeout
if (Success) Commence();
else CancelTransaction(); //This is where the invalidation of the URL would happen
有没有办法做到这一点?
发布于 2020-01-18 01:18:17
不是的。结账URL在180天内仍然有效。但是,如果用户从未访问过结账url,那么他们将无法找到它,因为它是唯一的URL。不过,没有办法取消结帐URL。
https://stackoverflow.com/questions/59782425
复制相似问题