payment-gateway - Stripe 身份验证和捕获

标签 payment-gateway stripe-payments

我的问题是我已经成功实现了 Stripe即时付款方式支付网关,但由于某些要求,现在我想将即时支付更改为两步支付方法。

我指的是 Does Stripe support auth and capture? .他们是这样说的

Note that a charge must be captured within seven days or it will be cancelled.

但我希望Auto Capture Charge 不会在 1 或 2 天内取消(如果可能的话)。

如果有任何想法,请帮助我。

我们将不胜感激。

最佳答案

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

捕获 可选,默认为真

Whether or not to immediately capture the charge. When false, the charge issues an authorization (or pre-authorization), and will need to be captured later. Uncaptured charges expire in 7 days. For more information, see authorizing charges and settling later.

因此,首先,您将像现在一样创建电荷,但将 capture 设置为 false。

然后,当您真正想向客户收费时,您可以调用 charge capture方法,传入上一步创建的费用ID。

不幸的是,没有办法自动执行此操作,因此您将需要编写一些代码 - 也许作为 cron 作业或计划任务来触发 x 数量的捕获费用部分几天

关于payment-gateway - Stripe 身份验证和捕获,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30529544/

相关文章:

paypal - 按用户/按数量定期计费。什么是 Stripe 的替代品?

java - Stripe : Add default card and do not override old card

c# - 向 Stripe 发出原始 HTTP POST 请求时如何发送 Stripe 的 key

ruby-on-rails - Stripe 重复/订阅计费最佳设计/实践?

api - 无法让 Stripe 收件人通过 API 进行验证

php - 在测试模式下集成 PayUMoney 支付网关时出现“抱歉出现错误”

javascript - 在每个 gatsby 页面中包含 stripe.js 脚本的最佳方式

ios - 在 Beta 环境中测试基于 App 的 Apple Pay

node.js - PayuMoney India 与 Node js 集成

PayPal - 如果已经批准了一些计费协议(protocol),则计费计划处于非事件状态怎么办?