# 地址栏有什么用？

**URL:** <https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957>\
**Category:** Feature\
**Tags:** subscriptions\
**Created:** [2024年一月9日 02:35 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957 "2024-01-09T02:35:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2024年一月9日 02:35 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/1 "2024-01-09T02:35:33Z")

</div>

地址字段的目的是什么？数据似乎无处可去，而且 Stripe 只要求国家/地区。

> ![image](https://global.discourse-cdn.com/meta/original/4X/8/a/0/8a06e7d8dcc9884835c7c0c1fc1af2ea853fc73a.png)

我用这个隐藏了它们：

```scss
// hide unnecessary address fields in subscriptions
.discourse-subscriptions-section-columns {
    input.subscribe-address-postal-code, input.subscribe-address-line1, input.subscribe-address-city, input.subscribe-address-state {
        display:none;
    }
    .subscribe-address-country-select {
        width:100%;
    }
}

```

如果所有用户都来自某个国家/地区，是否有办法自动填充国家/地区字段？

---

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2024年一月9日 16:43 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/2 "2024-01-09T16:43:00Z")

</div>

Stripe 是否通过匹配地址来验证信用卡？

> **[Card verification checks](https://docs.stripe.com/disputes/prevention/verification)**
>
> Verify cardholder information by collecting CVC codes, postal codes, and billing addresses to detect fraudulent activity before fulfilling orders.

---

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2024年一月9日 19:55 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/3 "2024-01-09T19:55:12Z")

</div>

这似乎是一个可选功能——如果需要，可以启用它。我没有这样做，也不打算这样做，因为它在我们的情况下没有意义。

如果启用了这些检查，那么同时显示这些字段并将其设为必填项是有意义的。如果关闭，那么不显示它们是有意义的。这应该是一个功能请求吗？

---

<div class="post-metadata">

**Author:** ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)\
**Post date:** [2024年一月9日 22:43 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/4 "2024-01-09T22:43:12Z")

</div>

您是否查看了失败的交易，以确定是否因为地址验证失败而错过了任何订阅？

> **[Stripe Login | Sign in to the Stripe Dashboard](https://dashboard.stripe.com/payments?status%5B0%5D=failed)**
>
> Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.

---

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2024年一月12日 03:04 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/5 "2024-01-12T03:04:15Z")

</div>

> [@omarfilip](#):
>
> 您是否查看了失败的交易，看看是否因为地址验证失败而错过了任何订阅？

到目前为止一切顺利。也许这只是我们新西兰（目前）的一个小问题。

> [@nathank](#):
>
> 如果所有用户都在该国家/地区，是否有办法自动填充国家/地区字段？

我看不到不分叉插件的方法。有人有什么建议吗？

---

<div class="post-metadata">

**Author:** ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)\
**Post date:** [2024年二月18日 19:07 UTC](https://meta.discourse.org/t/what-is-the-point-of-the-address-fields/293957/6 "2024-02-18T19:07:28Z")

</div>

> [@nathank](#):
>
> 数据似乎无处可去

Stripe 确实会在通过 API 发送地址时收集地址。

但是，要将其导出似乎有点棘手，因为账单地址未包含在其 UI 的客户数据导出中。
