-
Notifications
You must be signed in to change notification settings - Fork 572
Migration guide for v42
Richard Marmorstein edited this page Aug 17, 2023
·
8 revisions
In v41.0.0, stripe-dotnet
is now pinned to Stripe API version 2023-08-16
. When upgrading, please read the API upgrade guide and review each item to determine if changes are necessary for your integration to become compatible with 2023-08-16
.
Of particular note: Stripe has changed the defaults that apply when you use a PaymentIntent or SetupIntent without specifying the payment_method_types
parameter. Read more about this change here, and carefully review any of your code that calls PaymentIntent or SetupIntent APIs to see if you are affected.
"
⚠️ Remove deprecated constants fromEvent
.⚠️ Remove support forAvailableOn
onBalanceTransactionListOptions
- Use of this parameter is discouraged. You may use
.AddExtraParam
if sending the parameter is still required.
- Use of this parameter is discouraged. You may use
⚠️ Remove support forDestination
onCharge
- Please use
TransferData
orOnBehalfOf
instead.
- Please use
⚠️ Remove support forShippingRates
onCheckout.SessionCreateOptions
- Please use
ShippingOptions
instead.
- Please use
⚠️ Remove support forCoupon
andTrialFromPlan
onCheckoutSessionSubscriptionDataOptions
- Please migrate to the Prices API, or use
.AddExtraParam
if sending the parameter is still required.
- Please migrate to the Prices API, or use
⚠️ Remove support forBlik
onMandatePaymentMethodDetails
,PaymentMethodUpdateOptions
,SetupAttemptPaymentMethodDetails
,SetupIntentPaymentMethodOptionsOptions
, andSetupIntentPaymentMethodOptions
- These fields were mistakenly released.
⚠️ Remove support forAcssDebit
,Affirm
,AuBecsDebit
,BacsDebit
,Cashapp
,SepaDebit
, andZip
onPaymentMethodUpdateOptions
- These fields were empty hashes.
⚠️ Remove support forCountry
onPaymentMethodLink
- This field was not fully operational.
⚠️ Remove support forRecurring
onPriceUpdateOptions
- This property should be set on create only.
⚠️ Remove support forAttributes
,Caption
, andDeactivateOn
onProductCreateOptions
,ProductUpdateOptions
, andProduct
- These fields are not fully operational.
⚠️ Remove support forAlternateStatementDescriptors
andDispute
onCharge
- Use of these parameters is discouraged.
⚠️ More accurate types forAccountSettingsPayoutsScheduleOptions.DelayDays
,SubscriptionSchedulePhaseOptions.EndDate
,SubscriptionSchedulePhaseOptions.StartDate
, andSubscriptionSchedulePhaseOptions.TrialEnd
. These fields are dates or numbers that also support special signifier strings like "now". They have been changed to useAnyOf<...>
. (#2744)⚠️ Change type ofAccountSettingsPayoutsScheduleOptions.MonthlyAnchor
from string to long. (#2746)⚠️ MakeDiscount.Start
non-nullable (#2751)⚠️ Reflect thatDiscount.Subscription
is not expandable (#2751)⚠️ Reflect that several fields onInvoiceLineItem
are expandable. (#2751)