【发布时间】:2018-12-08 12:47:45
【问题描述】:
我正在尝试测试用户卡资金不足的场景。
按照https://stripe.com/docs/testing 的文档 - 卡号4000 0000 0000 0002 应该会产生这样的错误。源在 Stripe SDK 中被认为是 valid,它会生成一个源 token,但是当调用他们的 create_source API 时,它会返回一个 Request req_nGnzPdJHjw4lrk: Your card was declined. 消息,即使我还没有创建任何费用.
https://stripe.com/docs/saving-cards 的文档指出:
Stripe validates card information when it is saved. This does not guarantee that any future charges succeed (e.g., the card no longer has sufficient funds, is reported lost or stolen, or if the account is closed). This process also includes the results of any checks, including traditional bank checks by Radar (e.g., CVC or postal code), that may have been performed.
所以我的问题是,当卡片被条带接受,但在捕获费用期间资金不足时,我该如何测试场景?
【问题讨论】:
标签: stripe-payments pinax