-
Notifications
You must be signed in to change notification settings - Fork 460
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 forAvailableOn
onBalanceTransactionListParams
- Use of this parameter is discouraged. You may use
.AddExtra
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 forAlternateStatementDescriptors
andDispute
onCharge
- Use of these parameters is discouraged.
⚠️ Remove support forShippingRates
onCheckoutSessionParams
- Please use
ShippingParams
instead.
- Please use
⚠️ Remove support forCoupon
andTrialFromPlan
onCheckoutSessionSubscriptionDataParams
- Please migrate to the Prices API, or use
.AddExtra
if sending the parameter is still required.
- Please migrate to the Prices API, or use
⚠️ Remove support for valuecharge_refunded
from enumDisputeStatus
⚠️ Remove support forBLIK
onMandatePaymentMethodDetails
,PaymentMethodParams
,SetupAttemptPaymentMethodDetails
,SetupIntentConfirmPaymentMethodOptionsParams
,SetupIntentPaymentMethodOptionsParams
, andSetupIntentPaymentMethodOptions
- These fields were mistakenly released.
⚠️ Remove support forACSSDebit
,AUBECSDebit
,Affirm
,BACSDebit
,CashApp
,SEPADebit
, andZip
onPaymentMethodParams
- These fields were empty hashes.
⚠️ Remove support forCountry
onPaymentMethodLink
- This field was not fully operational.
⚠️ Remove support forRecurring
onPriceParams
- This property should be set on create only.
⚠️ Remove support forAttributes
,Caption
, andDeactivateOn
onProductParams
andProduct
- These fields are not fully operational.
⚠️ Remove deprecatedexcluded_territory
,jurisdiction_unsupported
,vat_exempt
taxability reasons:CheckoutSessionShippingCostTaxTaxabilityReasonExcludedTerritory
CheckoutSessionShippingCostTaxTaxabilityReasonJurisdictionUnsupported
CheckoutSessionShippingCostTaxTaxabilityReasonVATExempt
CheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritory
CheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupported
CheckoutSessionTotalDetailsBreakdownTaxTaxabilityReasonVATExempt
CreditNoteShippingCostTaxTaxabilityReasonExcludedTerritory
CreditNoteShippingCostTaxTaxabilityReasonJurisdictionUnsupported
CreditNoteShippingCostTaxTaxabilityReasonVATExempt
InvoiceShippingCostTaxTaxabilityReasonExcludedTerritory
InvoiceShippingCostTaxTaxabilityReasonJurisdictionUnsupported
InvoiceShippingCostTaxTaxabilityReasonVATExempt
LineItemTaxTaxabilityReasonExcludedTerritory
LineItemTaxTaxabilityReasonJurisdictionUnsupported
LineItemTaxTaxabilityReasonVATExempt
QuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritory
QuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupported
QuoteComputedRecurringTotalDetailsBreakdownTaxTaxabilityReasonVATExempt
QuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritory
QuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupported
QuoteComputedUpfrontTotalDetailsBreakdownTaxTaxabilityReasonVATExempt
QuoteTotalDetailsBreakdownTaxTaxabilityReasonExcludedTerritory
QuoteTotalDetailsBreakdownTaxTaxabilityReasonJurisdictionUnsupported
QuoteTotalDetailsBreakdownTaxTaxabilityReasonVATExempt
⚠️ Remove deprecated error code constantErrorCodeCardDeclinedRateLimitExceeded
, preferErrorCodeCardDeclineRateLimitExceeded
.⚠️ Remove deprecated error code constantErrorCodeInvalidSwipeData
.⚠️ Remove deprecated error code constantErrorCodeInvoicePamentIntentRequiresAction
preferErrorCodeInvoicePaymentIntentRequiresAction
.⚠️ Remove deprecated error code constantErrorCodeSepaUnsupportedAccount
, preferErrorCodeSEPAUnsupportedAccount
.⚠️ Remove deprecated error code constantErrorCodeSkuInactive
, preferErrorCodeSKUInactive
.⚠️ Remove deprecated error code constantErrorCodeinstantPayoutsLimitExceeded
, preferErrorCodeInstantPayoutsLimitExceeded
.