-
Notifications
You must be signed in to change notification settings - Fork 595
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 forAvailableOnonBalanceTransactionListOptions- 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 forDestinationonCharge- Please use
TransferDataorOnBehalfOfinstead.
- Please use
⚠️ Remove support forShippingRatesonCheckout.SessionCreateOptions- Please use
ShippingOptionsinstead.
- Please use
⚠️ Remove support forCouponandTrialFromPlanonCheckoutSessionSubscriptionDataOptions- Please migrate to the Prices API, or use
.AddExtraParamif sending the parameter is still required.
- Please migrate to the Prices API, or use
⚠️ Remove support forBlikonMandatePaymentMethodDetails,PaymentMethodUpdateOptions,SetupAttemptPaymentMethodDetails,SetupIntentPaymentMethodOptionsOptions, andSetupIntentPaymentMethodOptions- These fields were mistakenly released.
⚠️ Remove support forAcssDebit,Affirm,AuBecsDebit,BacsDebit,Cashapp,SepaDebit, andZiponPaymentMethodUpdateOptions- These fields were empty hashes.
⚠️ Remove support forCountryonPaymentMethodLink- This field was not fully operational.
⚠️ Remove support forRecurringonPriceUpdateOptions- This property should be set on create only.
⚠️ Remove support forAttributes,Caption, andDeactivateOnonProductCreateOptions,ProductUpdateOptions, andProduct- These fields are not fully operational.
⚠️ Remove support forAlternateStatementDescriptorsandDisputeonCharge- 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.MonthlyAnchorfrom string to long. (#2746)⚠️ MakeDiscount.Startnon-nullable (#2751)⚠️ Reflect thatDiscount.Subscriptionis not expandable (#2751)⚠️ Reflect that several fields onInvoiceLineItemare expandable. (#2751)