更新时间:2023-02-26 18:31:03
创建签出会话时,它具有a Payment Intent associated with it。您可以在释放预订时cancel that Payment Intent,这将阻止客户付款。
更新:您现在可以set expires_at
when creating the Checkout Session:
检出会话将过期的纪元时间(以秒为单位)。它可以是检出会话创建后1到24小时内的任何时间。默认情况下,此值为创建后24小时。
您现在还可以使用the dedicated "Expire a Session" API endpoint显式立即终止签出会话。