# Adds support to include the IOF tax in the amount for Pix payments ## What’s new Adds [amount_includes_iof](https://docs.stripe.com/api/checkout/sessions/object.md?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix-amount_includes_iof) to [payment_method_options](https://docs.stripe.com/api/checkout/sessions/object.md?api-version=2025-08-27.basil) for the [Pix](https://docs.stripe.com/payments/pix.md) payment method. ## Impact You can now absorb the IOF tax or choose to pass on the tax to your customer. You can set the [amount_includes_iof](https://docs.stripe.com/api/checkout/sessions/object.md?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix-amount_includes_iof) parameter to two values: - `always`: If you set it to `always`, the amount specified in the PaymentIntent is inclusive of the IOF tax. - `never`: If you set it to `never`, the amount specified in the PaymentIntent is exclusive of the IOF tax and the customer pays more than the business-specified amount. ## Changes #### REST API | Parameter | Change | Resources or endpoints | | --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount_includes_iof` | Added | [Checkout.Session#create.payment_method_options.pix](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix), [Checkout.Session.payment_method_options.pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [PaymentIntent#confirm.payment_method_options.pix](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntent#create.payment_method_options.pix](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix), [PaymentIntent#update.payment_method_options.pix](/api/payment_intents/update?api-version=2025-08-27.basil#update_payment_intent-payment_method_options-pix), [PaymentIntent.payment_method_options.pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix) | #### Ruby | Parameter | Change | Resources or methods | | --------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount_includes_iof` | Added | [Checkout::Session::CreateParams::PaymentMethodOption::Pix](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix), [Checkout::Session::PaymentMethodOption::Pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [PaymentIntent::ConfirmParams::PaymentMethodOption::Pix](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntent::CreateParams::PaymentMethodOption::Pix](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix), [PaymentIntent::PaymentMethodOption::Pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [PaymentIntent::UpdateParams::PaymentMethodOption::Pix](/api/payment_intents/update?api-version=2025-08-27.basil#update_payment_intent-payment_method_options-pix) | #### Python | Parameter | Change | Resources or methods | | --------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount_includes_iof` | Added | [Checkout.Session.PaymentMethodOption.Pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [PaymentIntent.ConfirmParamsPaymentMethodOptionPix](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntent.CreateParamsPaymentMethodOptionPix](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix), [PaymentIntent.ModifyParamsPaymentMethodOptionPix](/api/payment_intents/update?api-version=2025-08-27.basil#update_payment_intent-payment_method_options-pix), [PaymentIntent.PaymentMethodOption.Pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [checkout.Session.CreateParamsPaymentMethodOptionPix](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix) | #### PHP This change does not affect the PHP SDK. #### Java | Parameter | Change | Resources or methods | | ------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amountIncludesIof` | Added | [PaymentIntent.payment_method_options.pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [PaymentIntentConfirmParams.payment_method_options.pix](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntentCreateParams.payment_method_options.pix](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix), [PaymentIntentUpdateParams.payment_method_options.pix](/api/payment_intents/update?api-version=2025-08-27.basil#update_payment_intent-payment_method_options-pix), [checkout.Session.payment_method_options.pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [checkout.SessionCreateParams.payment_method_options.pix](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix) | #### Node.js | Parameter | Change | Resources or methods | | --------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `amount_includes_iof` | Added | [Checkout.Session.payment_method_options.pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [Checkout.SessionCreateParams.payment_method_options.pix](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix), [PaymentIntent.payment_method_options.pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [PaymentIntentConfirmParams.payment_method_options.pix](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntentCreateParams.payment_method_options.pix](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix), [PaymentIntentUpdateParams.payment_method_options.pix](/api/payment_intents/update?api-version=2025-08-27.basil#update_payment_intent-payment_method_options-pix) | #### Go | Parameter | Change | Resources or methods | | ------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AmountIncludesIof` | Added | [CheckoutSessionPaymentMethodOptionsPix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [CheckoutSessionPaymentMethodOptionsPixParams](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix), [PaymentIntentConfirmPaymentMethodOptionsPixParams](/api/payment_intents/confirm?api-version=2025-08-27.basil#confirm_payment_intent-payment_method_options-pix), [PaymentIntentPaymentMethodOptionsPix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [PaymentIntentPaymentMethodOptionsPixParams](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix) | #### .NET | Parameter | Change | Resources or methods | | ------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AmountIncludesIof` | Added | [Checkout.Session.PaymentMethodOptions.Pix](/api/checkout/sessions/object?api-version=2025-08-27.basil#checkout_session_object-payment_method_options-pix), [CheckoutSessionPaymentMethodOptionsPixOptions](/api/checkout/sessions/create?api-version=2025-08-27.basil#create_checkout_session-payment_method_options-pix), [PaymentIntent.PaymentMethodOptions.Pix](/api/payment_intents/object?api-version=2025-08-27.basil#payment_intent_object-payment_method_options-pix), [PaymentIntentPaymentMethodOptionsPixOptions](/api/payment_intents/create?api-version=2025-08-27.basil#create_payment_intent-payment_method_options-pix) | ## 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. 1. 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-08-27.basil` 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your Ruby SDK to [v15.5.0](https://github.com/stripe/stripe-ruby/releases/tag/v15.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your Python SDK to [v12.5.0](https://github.com/stripe/stripe-python/releases/tag/v12.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your PHP SDK to [v17.6.0](https://github.com/stripe/stripe-php/releases/tag/v17.6.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your Java SDK to [v29.5.0](https://github.com/stripe/stripe-java/releases/tag/v29.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your Node SDK to [v18.5.0](https://github.com/stripe/stripe-node/releases/tag/v18.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your Go SDK to [v82.5.0](https://github.com/stripe/stripe-go/releases/tag/v82.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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. 1. Upgrade your .NET SDK to [v48.5.0](https://github.com/stripe/stripe-dotnet/releases/tag/v48.5.0) 1. Upgrade the API version used for [webhook endpoints](https://docs.stripe.com/webhooks/versioning.md). 1. [Test your integration](https://docs.stripe.com/testing.md) against the new version. 1. If you use Connect, [test your Connect integration](https://docs.stripe.com/connect/testing.md). 1. 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 PayPay settings to the Account object](https://docs.stripe.com/changelog/basil/2025-08-27/add_paypay_payments_settings.md) - [Adds a Charge transaction ID for several payment methods](https://docs.stripe.com/changelog/basil/2025-08-27/transaction-id.md) - [Adds the number of installments for Alma payments to Charge objects](https://docs.stripe.com/changelog/basil/2025-08-27/alma-installments.md) - [Adds excluded payment method types to the Payment Intents API](https://docs.stripe.com/changelog/basil/2025-08-27/cs_add_excluded_payment_method_types_pi.md)