# Adds support for using Accounts v2 payment method billing details for Stripe Tax location

## What’s new

Adds the `payment_method` value to the [location_source](https://docs.stripe.com/api/v2/core/accounts/object.md?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) enum on the [Accounts v2 Customer Configuration](https://docs.stripe.com/api/v2/core/accounts/object.md?api-version=2025-10-29.preview#v2_account_object-configuration-customer).

## Why is this a breaking change?

This change adds a new `payment_method` value to the closed [location_source](https://docs.stripe.com/api/v2/core/accounts/object.md?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) enum. Users receiving a response with the unexpected `payment_method` value might handle the response incorrectly.

## Impact

Stripe Tax users can now use a payment method to calculate tax for an Accounts v2 transaction by setting [location_source](https://docs.stripe.com/api/v2/core/accounts/create.md?api-version=2025-10-29.preview#v2_create_accounts-configuration-customer-automatic_indirect_tax-location_source) to `payment_method`. We use the [billing details](https://docs.stripe.com/api/payment_methods/object.md?api-version=2025-10-29.preview#payment_method_object-billing_details) of the most specific default payment method available, in the following order of priority:

1. [Invoice](https://docs.stripe.com/api/invoices/object.md?api-version=2025-10-29.preview#invoice_object-default_payment_method), if present.
2. [Subscription](https://docs.stripe.com/api/subscriptions/object.md?api-version=2025-10-29.preview#subscription_object-default_payment_method), if present.
3. [Accounts v2 Customer Configuration](https://docs.stripe.com/api/v2/core/accounts/object.md?api-version=2025-10-29.preview#v2_update_accounts-configuration-customer-billing-default_payment_method), if present.

## Changes

#### REST API

| Value | Change | Enums |
| --- | --- | --- |
| `payment_method` | Added | [V2.Core.Account.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [V2.Core.Account#create.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [V2.Core.Account#update.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) |

#### Ruby

This change does not affect the Ruby SDK.

#### Python

| Value | Change | Enums |
| --- | --- | --- |
| `payment_method` | Added | [V2.Core.Account.Configuration.Customer.AutomaticIndirectTax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [v2.core.Account.CreateParamsConfigurationCustomerAutomaticIndirectTax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [v2.core.Account.ModifyParamsConfigurationCustomerAutomaticIndirectTax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) |

#### PHP

| Value | Change | Enum |
| --- | --- | --- |
| `payment_method` | Added | [V2.Core.Account.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) |

#### Java

| Value | Change | Enums |
| --- | --- | --- |
| `payment_method` | Added | [v2.core.AccountCreateParams.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/create?api-version=2025-10-29.preview#v2_create_accounts-configuration-customer-automatic_indirect_tax-locationSource), [v2.core.AccountUpdateParams.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/create?api-version=2025-10-29.preview#v2_create_accounts-configuration-customer-automatic_indirect_tax-locationSource) |

#### Node.js

| Value | Change | Enums |
| --- | --- | --- |
| `payment_method` | Added | [V2.Core.Account.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [V2.Core.AccountCreateParams.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source), [V2.Core.AccountUpdateParams.configuration.customer.automatic_indirect_tax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-location_source) |

#### Go

| Value | Change | Enum |
| --- | --- | --- |
| `payment_method` | Added | [V2CoreAccountConfigurationCustomerAutomaticIndirectTax](/api/v2/core/accounts/object?api-version=2025-10-29.preview#v2_account_object-configuration-customer-automatic_indirect_tax-LocationSource) |

#### .NET

This change does not affect the .NET SDK.

## Upgrade

#### REST API

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. If you use an SDK, upgrade to the corresponding SDK version for this API version.
   - If you don’t use an SDK, update your [API requests](https://docs.stripe.com/api/versioning.md) to include `Stripe-Version: 2025-10-29.preview`
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Ruby

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Ruby SDK to [v17.2.0-beta.1](https://github.com/stripe/stripe-ruby/releases/tag/v17.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Python

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Python SDK to [v13.2.0b1](https://github.com/stripe/stripe-python/releases/tag/v13.2.0b1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### PHP

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your PHP SDK to [v18.2.0-beta.1](https://github.com/stripe/stripe-php/releases/tag/v18.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Java

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Java SDK to [v30.2.0-beta.1](https://github.com/stripe/stripe-java/releases/tag/v30.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Node.js

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Node SDK to [v19.3.0-beta.1](https://github.com/stripe/stripe-node/releases/tag/v19.3.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### Go

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your Go SDK to [v83.1.0-beta.3](https://github.com/stripe/stripe-go/releases/tag/v83.1.0-beta.3)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

#### .NET

1. [View your current API version](https://docs.stripe.com/upgrades.md#view-your-api-version-and-the-latest-available-upgrade-in-workbench) in Workbench.
2. Upgrade your .NET SDK to [v49.2.0-beta.1](https://github.com/stripe/stripe-dotnet/releases/tag/v49.2.0-beta.1)
3. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md).
4. [Test your integration](https://docs.stripe.com/testing.md) against the new version.
5. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md).
6. In Workbench, [perform the upgrade](https://docs.stripe.com/upgrades.md#perform-the-upgrade). You can [roll back the version](https://docs.stripe.com/upgrades.md#roll-back-your-api-version) for 72 hours.

Learn more about [Stripe API upgrades](https://docs.stripe.com/upgrades.md).

## Related changes

- [Adds new error code for missing verification data from connected accounts](https://docs.stripe.com/changelog/clover/2025-10-29/accounts-verification-data-error.md)
- [Adds the ability to attest to the authorized company representative for Accounts v2](https://docs.stripe.com/changelog/clover/2025-10-29/v2-representative-declaration.md)
- [Adds support for retrieving and listing closed v2 Accounts](https://docs.stripe.com/changelog/clover/2025-10-29/return-closed-v2-accounts.md)
