如何在React中重复出现并将其与自定义结帐页面表示?

发布于 2025-01-23 19:44:13 字数 164 浏览 2 评论 0 原文

我正在从事一个项目,必须将条纹重复付款与自定义结帐页面集成在一起。

我尝试了多种方法,但没有任何作用。

我希望我在这里得到答案。

另外,请有人帮助我,如何在数据库中商店付款

谢谢您的回答。

I am working on a project where I have to integrate Stripe Recurring Payment with custom checkout page.

I tried many ways but nothing is working.

I hope i get a answer here.

Also Please someone help me with how to store payments every month in data base.

Thank you for your answers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑饮青盏花 2025-01-30 19:44:13

您可以使用Stripe进行Express和反应的重复付款。在高水平上您需要:

  1. 创建 product'> product and a recurring Price 仪表板或使用API
  2. ​​在后端创建订阅,并检索订阅的最新>最新的_invoice.payment_intent.client_secret 。您可以看到一个示例
  3. 使用客户秘密收集前端的付款信息。对于React,这是此文档页面

要将每月付款存储在数据库中,您可以使用 Stripe webhooks 听听

You can have recurring payments with Express and React using Stripe. At a high level you need to:

  1. Create a product and a recurring price, either with the dashboard or with the API
  2. Create a Subscription on the backend and retrieve the latest_invoice.payment_intent.client_secret of the subscription. You can see an example here with Express.
  3. Use the client secret to collect payment information on the frontend. For React this is covered on this documentation page.

To store the monthly payments in your database, you can use Stripe webhooks to listen to the invoice.paid event

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文