【问题标题】:How to write an integration spec for Stripe Strong Customer Authentication如何为 Stripe Strong Customer Authentication 编写集成规范
【发布时间】:2019-08-29 11:22:26
【问题描述】:

我们正在更新 Stripe 的应用程序集成以使用强大的客户身份验证。我想测试我们的集成是否在客户确认使用 3d 安全时触发了相应的 Javascript。

我遇到的问题是我在多个测试中使用相同的客户端密码,并且模式只会在第一次使用客户端密码时出现。这是一个问题,因为我不想为了测试集成的 SCA 部分而必须通过与每个测试的前端交互来完成完整的事务。

有人知道解决方法吗?

【问题讨论】:

    标签: stripe-payments strong-customer-authentication


    【解决方案1】:

    @keoghpe,成功完成的 payment_intent 客户端密码无法重用。但是,如果您使用的是测试卡,例如 (4000008260003178) https://stripe.com/docs/payments/cards/testing#regulatory-cards 此卡号是模拟支付失败的 Stripe 测试卡。在这种情况下,payment_intent 的状态机将被踢回 requires_payment_method 状态,您可以再次重用客户端密码。

    【讨论】:

      猜你喜欢
      • 2023-04-10
      • 1970-01-01
      • 2021-01-05
      • 2011-11-18
      • 2013-01-05
      • 1970-01-01
      • 2014-10-10
      • 1970-01-01
      • 2014-02-26
      相关资源
      最近更新 更多