What is the point of the address fields?

AI-generated summary

The discussion revolves around the purpose of address fields in the subscription section. nathank questions their necessity, as only the country field is required by Stripe and the data doesn’t seem to be used. He shares a SCSS code snippet to hide the unnecessary fields.

nathank also asks if it’s possible to autofill the Country field for users based in a specific country. omarfilip points out that Stripe validates credit cards by matching the address, but nathank notes that this feature can be turned on or off, and he hasn’t enabled it.

nathank shares that he hasn’t had any issues with failed subscriptions due to address verification, and omarfilip suggests checking failed transactions to see if address verification is a problem. nathank notes that Stripe does collect addresses via the API, but it’s tricky to access the billing address data.

Overall, the discussion raises questions about the functionality and necessity of address fields in the subscription section, and the possibility of autofilling the Country field for users based in a specific country.

What is the point of the address fields? The data doesn’t seem to go anywhere, and only the country is required by Stripe.

I hid them with this:

// 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%;
    }
}

And is there a way to autofill the Country field if all users are based in that country?

Doesn’t Stripe validate the credit card by matching the address?

It seems an optional thing - can be turned on if required. Which I haven’t done and don’t intend to as it doesn’t make sense in our situation.

If those checks were turned on, it would make sense to have the fields both display and be mandatory. If off, it makes sense to not display them. Should this be a feature request?

Have you looked at the failed transactions to see if you’re missing any subscriptions because of a failed address verification?

Stripe Login | Sign in to the Stripe Dashboard

So far so good. Maybe it just isn’t a problem for us in little old New Zealand (yet).

I can’t see how to do this without forking the plugin. Anyone got any suggestions of how to do this?

Stripe does indeed collect addresses when sent through via the API.

However, it looks a bit tricky to get it out as billing address is not included in the customer data export in their UI.