payment_details, payments, and payouts on AccountSession.components and CreateParams.componentsfeatures on AccountSession.components.account_onboarding and CreateParams.components.account_onboardingcustomer_tax_location_invalid and financial_connections_no_successful_transaction_refresh on enums Invoice.last_finalization_error.code, PaymentIntent.last_payment_error.code, SetupAttempt.setup_error.code, SetupIntent.last_setup_error.code, and StripeError.codepayment_network_reserve_hold and payment_network_reserve_release on enum BalanceTransaction.typeClimate.Product.metric_tons_available to be requiredvarious from enum Climate.Supplier.removal_pathwaychallenge_only and challenge from enum PaymentIntent.payment_method_options.card.request_three_d_secureinactive_message and restrictions on CreateParams, ModifyParams, and PaymentLinktransfer_group on PaymentLink.payment_intent_data, CreateParams.payment_intent_data, and ModifyParams.payment_intent_datatrial_settings on PaymentLink.subscription_data, CreateParams.subscription_data, and ModifyParams.subscription_datastripe.app_info, stripe.http_client, stripe.oauth, stripe.util, stripe.version, stripe.webhook, modules are deprecated. All types are available directly from stripe module now.
Before:
from stripe.util import convert_to_stripe_object
# or
stripe.util.convert_to_stripe_object
After:
from stripe import convert_to_stripe_object
# or
stripe.convert_to_stripe_object
stripe.api_version, stripe.multipart_data_generator, stripe.request_metrics are deprecated and will be fully removed in the future.stripe.error, stripe.stripe_object, stripe.api_requestor, stripe.stripe_response, stripe.request_options, stripe.api_resources.*, stripe.api_resources.abstract.* modules are deprecated. All types are available directly from stripe module now.
Before:
from stripe.error import APIError
# or
stripe.error.APIError
After:
from stripe import APIError
# or
stripe.APIError
Fetched March 31, 2026