Strip 中的预购系统 API

Pre order system in Strip API

我根据客户需求在我们的网站上使用 strip 支付网关 "pre order system" 例如在下订单付款保存在 strip 帐户后以及网站管理员更改订单状态时集成到网站中 "delivered" 比付款扣除。 是否可以脱衣付款API.if是的,请提供文件。

是的,有这样一个选项,叫做auth & capture。见下文 -

https://support.stripe.com/questions/does-stripe-support-authorize-and-capture

简而言之,当您创建新费用时,您传递了 capture => false 参数,因此 stripe 仅保留指定的金额。

https://stripe.com/docs/api#create_charge

如果从创建订单到您要实际从卡中扣款的时间少于 7 天,那么您可以使用 Tosho 解释的 auth & capture 流程。

否则,你可以create a customer object to save card information, and use it later to actually create a charge. This is explained in this tutorial。请注意,在这种情况下,您无法保证收费会成功。