-
Notifications
You must be signed in to change notification settings - Fork 532
Migration guide for v75
pakrym-stripe edited this page Aug 16, 2023
·
5 revisions
- This release changes the pinned API version to
2023-08-16. Please read the API Upgrade Guide and carefully review the API changes before upgradingstripe-go.
Metadata and Expand fields were added to individual Params classes. Expand, AddExpand, Metadata and AddMetadata on embedded Params struct were deprecated.
Before:
params := &stripe.AccountParams{
Params: stripe.Params{
Expand: []*string{stripe.String("business_profile")},
Metadata: map[string]string{
"order_id": "6735",
},
},
}After:
params := &stripe.AccountParams{
Expand: []*string{stripe.String("business_profile")},
Metadata: map[string]string{
"order_id": "6735",
},
}You don't have to change your calls to AddMetadata and AddExpand
Before/After:
params.AddMetadata("order_id", "6735")
params.AddExpand("business_profile")⚠️ Remove support forAvailableOnonBalanceTransactionListParams- Use of this parameter is discouraged. You may use
.AddExtraif 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 forAlternateStatementDescriptorsandDisputeonCharge- Use of these parameters is discouraged.
⚠️ Remove support forShippingRatesonCheckoutSessionParams- Please use
ShippingParamsinstead.
- Please use
⚠️ Remove support forCouponandTrialFromPlanonCheckoutSessionSubscriptionDataParams- Please migrate to the Prices API, or use
.AddExtraif sending the parameter is still required.
- Please migrate to the Prices API, or use
⚠️ Remove support for valuecharge_refundedfrom enumDisputeStatus⚠️ Remove support forBLIKonMandatePaymentMethodDetails,PaymentMethodParams,SetupAttemptPaymentMethodDetails,SetupIntentConfirmPaymentMethodOptionsParams,SetupIntentPaymentMethodOptionsParams, andSetupIntentPaymentMethodOptions- These fields were mistakenly released.
⚠️ Remove support forACSSDebit,AUBECSDebit,Affirm,BACSDebit,CashApp,SEPADebit, andZiponPaymentMethodParams- These fields were empty hashes.
⚠️ Remove support forCountryonPaymentMethodLink- This field was not fully operational.
⚠️ Remove support forRecurringonPriceParams- This property should be set on create only.
⚠️ Remove support forAttributes,Caption, andDeactivateOnonProductParamsandProduct- These fields are not fully operational.
⚠️ Remove deprecatedexcluded_territory,jurisdiction_unsupported,vat_exempttaxability reasons:CheckoutSessionShippingCostTaxTaxabilityReasonExcludedTerritoryCheckoutSessionShippingCostTaxTaxabilityReasonJurisdictionUnsupportedCheckoutSessionShippingCostTaxTaxabilityReasonVATExemptCheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritoryCheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupportedCheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonVATExemptCreditNoteShippingCostTaxTaxabilityReasonExcludedTerritoryCreditNoteShippingCostTaxTaxabilityReasonJurisdictionUnsupportedCreditNoteShippingCostTaxTaxabilityReasonVATExemptInvoiceShippingCostTaxTaxabilityReasonExcludedTerritoryInvoiceShippingCostTaxTaxabilityReasonJurisdictionUnsupportedInvoiceShippingCostTaxTaxabilityReasonVATExemptLineItemTaxTaxabilityReasonExcludedTerritoryLineItemTaxTaxabilityReasonJurisdictionUnsupportedLineItemTaxTaxabilityReasonVATExemptQuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritoryQuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupportedQuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonVATExemptQuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritoryQuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupportedQuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonVATExemptQuoteTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritoryQuoteTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupportedQuoteTotalDetailsBreakdownTaxTaxabilityReasonVATExempt
⚠️ Remove deprecated error code constantErrorCodeCardDeclinedRateLimitExceeded, preferErrorCodeCardDeclineRateLimitExceeded.⚠️ Remove deprecated error code constantErrorCodeInvalidSwipeData.⚠️ Remove deprecated error code constantErrorCodeInvoicePamentIntentRequiresActionpreferErrorCodeInvoicePaymentIntentRequiresAction.⚠️ Remove deprecated error code constantErrorCodeSepaUnsupportedAccount, preferErrorCodeSEPAUnsupportedAccount.⚠️ Remove deprecated error code constantErrorCodeSkuInactive, preferErrorCodeSKUInactive.⚠️ Remove deprecated error code constantErrorCodeinstantPayoutsLimitExceeded, preferErrorCodeInstantPayoutsLimitExceeded.