【问题标题】:How to stop the redirecting after payment confirm on stripe?如何在条带上确认付款后停止重定向?
【发布时间】:2022-07-21 17:55:43
【问题描述】:

一旦用户确认付款,我将尝试将客户订单存储在 MongoDB 中。那么如何在确认付款后停止条纹重定向?

【问题讨论】:

  • 您使用的是什么 API?您的方法基于什么支付流程?您能指出公共 Stripe 文档中的内容吗?
  • 请提供足够的代码,以便其他人更好地理解或重现问题。

标签: stripe-payments


【解决方案1】:

您可以使用文档https://stripe.com/docs/js/payment_intents/confirm_payment#confirm_payment_intent-options-redirect中的默认参数

confirmParams: {
    return_url: "https://example.com",
},
    redirect: 'if_required' 
});

【讨论】:

    猜你喜欢
    • 2017-03-28
    • 2016-07-18
    • 1970-01-01
    • 2013-09-28
    • 2023-03-13
    • 2020-02-05
    • 2017-03-17
    • 2022-08-12
    • 2014-12-20
    相关资源
    最近更新 更多