-
Notifications
You must be signed in to change notification settings - Fork 850
Migration guide for v13
anniel-stripe edited this page Aug 21, 2023
·
8 revisions
"
- Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). (https://github.com/stripe/stripe-node/pull/1803)
- Allow request-level options to disable retries. (https://github.com/stripe/stripe-node/pull/1808)
- Remove deprecated
delmethod onSubcriptions. Please use thecancelmethod instead, which was introduced in v9.14.0:
// Before
stripe.subscriptions.del('sub_123');
// After
stripe.subscriptions.cancel('sub_123');- Remove support for values
custom_account_updateandcustom_account_verificationfrom enumAccountLinkCreateParams.type- These values are not fully operational. Please use account_update and account_onboarding instead (see API reference).
- Remove support for
available_ononBalanceTransactionListParams- Use of this parameter is discouraged. You may use
.AddExtraParamif sending the parameter is still required.
- Use of this parameter is discouraged. You may use
- Remove support for
alternate_statement_descriptorsanddisputeonCharge- Use of these fields is discouraged.
- Remove support for
destinationonCharge- Please use
transfer_dataoron_behalf_ofinstead.
- Please use
- Remove support for
shipping_ratesonCheckout.SessionCreateParams- Please use
shipping_optionsinstead.
- Please use
- Remove support for
couponandtrial_from_planonCheckout.SessionCreateParams.subscription_data- Please migrate to the Prices API, or suppress the Typescript error with
// @ts-ignoreoranyif sending the parameter is still required.
- Please migrate to the Prices API, or suppress the Typescript error with
- Remove support for value
card_presentfrom enumsCustomerListPaymentMethodsParams.typeandPaymentMethodListParams.type- This value was not fully operational.
- Remove support for value
charge_refundedfrom enumDispute.status- This value was not fully operational.
- Remove support for
blikonMandate.payment_method_details,PaymentMethodUpdateParams,SetupAttempt.payment_method_details,SetupIntent.payment_method_options,SetupIntentConfirmParams.payment_method_options,SetupIntentCreateParams.payment_method_options, andSetupIntentUpdateParams.payment_method_options- These fields were mistakenly released.
- Remove support for
acss_debit,affirm,au_becs_debit,bacs_debit,cashapp,sepa_debit, andziponPaymentMethodUpdateParams* These fields are empty. - Remove support for
countryonPaymentMethod.link* This field was not fully operational. - Remove support for
recurringonPriceUpdateParams* This property should be set on create only. - Remove support for
attributes,caption, anddeactivate_ononProductCreateParams,ProductUpdateParams, andProduct- These fields are not fully operational.
- Add support for new values
verification_directors_mismatch,verification_document_directors_mismatch,verification_extraneous_directors, andverification_missing_directorson enumsAccount.future_requirements.errors[].code,Account.requirements.errors[].code,BankAccount.future_requirements.errors[].code, andBankAccount.requirements.errors[].code - Add support for new value
2023-08-16on enumWebhookEndpointCreateParams.api_version