# Stripe Campaign 捐赠金额未能更新

**URL:** <https://meta.discourse.org/t/stripe-campaign-donated-amount-fails-to-update/209591>\
**Category:** Product Support\
**Tags:** subscriptions\
**Created:** [2021 年11 月 19 日 01:58 UTC](https://meta.discourse.org/t/stripe-campaign-donated-amount-fails-to-update/209591 "2021-11-19T01:58:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
发布日期： [2021 年11 月 21 日 00:58 UTC](https://meta.discourse.org/t/stripe-campaign-donated-amount-fails-to-update/209591/6 "2021-11-21T00:58:44Z")

</div>

我刚刚创建了一个 PR，应该可以解决一次性购买的筹款金额未显示的问题。

> <https://github.com/discourse/discourse-subscriptions/pull/95>
>
> On the subscription banner that shows on the top of the forum it shows
> the tota…l amount raised toward a goal. But the amount shown was not
> including one-time purchases. It was only showing subscriptions.
> 
> This change updates the sync with stripe logic so that it also includes
> one-time purchases.
> 
> See: https://meta.discourse.org/t/-/209591

但我需要等待它被审查并部署到您的站点。我将及时向您更新进展，届时您可以再次进行测试。

> [@jochen\_weber](#):
>
> 一个可能的原因是，我在 Stripe 中配置了产品（有 3 个价格级别），而不是使用 Discourse 中的“+ 新建产品”按钮。

啊，好的。这很有用，但并不是问题的根源。不过，我希望在某个时候更新插件，使其完全忽略任何不是直接在 Discourse 中创建的内容，以避免这种混淆。

> [@jochen\_weber](#):
>
> 我也不完全明白 Discourse 如何将产品/价格与 Stripe 同步。

部分功能仍然有效的一个原因是，您已将产品 ID 添加到 `discourse_subscriptions_campaign_product` 站点设置中。这允许购买，但由于产品不是通过 Discourse 添加的，因此缺少一些功能。

我刚刚手动将您添加到 Stripe 的产品 ID 添加到您的 Discourse 实例中，这样账单下应该会正确显示。

---

_[View the full topic](https://meta.discourse.org/t/stripe-campaign-donated-amount-fails-to-update/209591)._
