# Renames the save_source_to_customer field for sources to save_payment_method

## What’s new

Renames `save_source_to_customer` to `save_payment_method`.

## Impact

Update your code to use the new parameter name when specifying whether to save a payment method to a customer. This modification provides more generalized terminology that could accommodate various types of payment methods.

## Changes

#### REST API

| Parameter | Change | Resources or endpoints |
| --- | --- | --- |
| `save_source_to_customer` | Removed | [PaymentIntent#confirm](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntent#create](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntent#update](/api/payment_intents/update?api-version=2024-06-20) |

#### Ruby

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `save_source_to_customer` | Removed | [PaymentIntentConfirmParams](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentCreateParams](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntentUpdateParams](/api/payment_intents/update?api-version=2024-06-20) |

#### Python

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `save_source_to_customer` | Removed | [PaymentIntentConfirmParams](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentCreateParams](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntentModifyParams](/api/payment_intents/update?api-version=2024-06-20) |

#### PHP

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `save_source_to_customer` | Removed | [PaymentIntent.confirm().$params](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntent.create().$params](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntent.update().$params](/api/payment_intents/update?api-version=2024-06-20) |

#### Java

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `saveSourceToCustomer` | Removed | [PaymentIntentConfirmParams](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentCreateParams](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntentUpdateParams](/api/payment_intents/update?api-version=2024-06-20) |

#### Node.js

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `save_source_to_customer` | Removed | [PaymentIntentConfirmParams](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentCreateParams](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntentUpdateParams](/api/payment_intents/update?api-version=2024-06-20) |

#### Go

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `SaveSourceToCustomer` | Removed | [PaymentIntentConfirmParams](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentParams](/api/payment_intents/create?api-version=2024-06-20) |

#### .NET

| Parameter | Change | Resources or methods |
| --- | --- | --- |
| `SaveSourceToCustomer` | Removed | [PaymentIntentConfirmOptions](/api/payment_intents/confirm?api-version=2024-06-20), [PaymentIntentCreateOptions](/api/payment_intents/create?api-version=2024-06-20), [PaymentIntentUpdateOptions](/api/payment_intents/update?api-version=2024-06-20) |

## 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: 2019-02-11`
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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 the latest version.
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).
