# 问题订阅、测试模式和计费选项

**URL:** <https://meta.discourse.org/t/problem-subscriptions-test-mode-and-billing-option/355416>\
**Category:** Bug\
**Tags:** subscriptions\
**Created:** [2025年三月3日 10:12 UTC](https://meta.discourse.org/t/problem-subscriptions-test-mode-and-billing-option/355416 "2025-03-03T10:12:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![MadPenguin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/madpenguin/32/323935_2.png) [@MadPenguin](https://meta.discourse.org/u/MadPenguin)\
**Post date:** [2025年三月3日 10:12 UTC](https://meta.discourse.org/t/problem-subscriptions-test-mode-and-billing-option/355416/1 "2025-03-03T10:12:17Z")

</div>

您好，

我正在尝试在我自托管的实例上使用订阅（定价表）。我已经设置并测试了 Stripe 的测试模式，但是当我切换到实时模式时，尽管它似乎有效，“账单”选项卡在我的个人资料中现在报告了一个错误。

> ☹  
> 加载 /s/user/subscriptions 时出错  
> 出了些问题。

当我查看 JavaScript 控制台时，我看到：

“测试模式中存在一个类似的对像，但使用了实时模式密钥”

这让我认为在模式切换之间存在一致性问题。现在我知道这是一个问题，我可以小心选择要测试的帐户，但我的问题是，如何为那些在测试模式下订阅的用户清除此问题，而他们现在想在实时模式下进行实际订阅？

（即，如何清除此错误）

是否有一个数据库查询或类似的东西可以清除用户的所有订阅，包括那些可能引起问题的人？  
谢谢。

---

_[View the full topic](https://meta.discourse.org/t/problem-subscriptions-test-mode-and-billing-option/355416)._
