如何在订阅上测试 stripe charge.failed webhook

时间:2021-06-12 02:44:29

标签: stripe-payments stripe-subscriptions

我有一个有效的测试订阅设置。我正在尝试测试付款失败时会发生什么。我需要能够将一些元数据(认知用户 ID)传递给 webhook 端点,我想我知道如何做到这一点,但不知道如何测试它。

使用测试网络钩子不起作用,因为它发送了一个虚假的收费 ID。我试过使用支付失败卡,但运气不佳,因为它似乎没有触发我的端点。

这是我已经阅读的内容:

https://stripe.com/docs/billing/testing

Stripe charge after subscription, get metadata from subscription

Stripe subscription webhooks missing metadata and client_reference_id

How can I test subscription renewal flows in stripe?

0 个答案:

没有答案