This release changes the pinned API version to 2025-09-30.clover
and contains breaking changes (prefixed with ⚠️ below)
-
#2121 Add strongly typed EventNotifications
We've overhauled how V2 Events are handled in the SDK! This approach should provide a lot more information at authoring and compile time, leading to more robust integrations. As part of this process, there are a number of changes to be aware of.- ⚠️ Rename function
Client.ParseThinEvent
toClient.ParseEventNotification
and remove theThinEvent
struct.- This function now returns a
EventNotificationContainer
(which is an interface that allEventNotification
s adhere to) instead ofThinEvent
. When applicable, these event notifications will have theRelatedObject
field and a functionFetchRelatedObject()
. They also have aFetchEvent()
method to retrieve their corresponding event. - If you parse an event the SDK doesn't have types for (e.g. it's newer than the SDK you're using), you'll get an instance of
UnknownEventNotification
instead of a more specific type. It has both theRelatedObject
field and the functionFetchRelatedObject()
(but they may benil
)
- This function now returns a
- ⚠️ Removed
API.parseThinEvent
. UseClient.ParseEventNotification
instead (referring to the migration guide if necessary).
- ⚠️ Rename function
-
#2133 Add
StripeContext
object- Add the
stripe.Context
struct. Previously, you could set the stripe context only as a string viaSetStripeContext()
. You can now set it using the new struct as well viaSetStripeContextFrom()
. - ⚠️ Change
EventNotification
(formerly known asThinEvent
)'scontext
property fromstring
tostripe.Context
- Add the
-
#2114 ⚠️ Build SDK w/ V2 OpenAPI spec
- ⚠️ The delete methods for v2 APIs (the ones in the
V2
prefix) now return aV2DeletedObject
which has the id of the object that has been deleted and a string representing the type of the object that has been deleted. - ⚠️ Nullable properties on objects returned by v2 APIs now have the
omitempty
annotation
- ⚠️ The delete methods for v2 APIs (the ones in the
-
#2138 Move
V2.Event
API resources toV2.Core.Events
- ⚠️ Rename all types starting with
V2Event
to start withV2CoreEvent
. For exampleV2EventNotification
->V2CoreEventNotification
V2EventReason
->V2CoreEventReason
V2Event
->V2CoreEvent
V2RawEvent
->V2CoreRawEvent
V2EventDestination
-> V2CoreEventDestination
- ⚠️ Rename all types starting with
-
#2143 Change RelatedObject to V2CoreEventRelatedObject
- ⚠️ Changes the name of the
stripe.RelatedObject
struct tostripe.V2CoreEventRelatedObject
.
- ⚠️ Changes the name of the
-
#2142 ⚠️ Drop support for Go < 1.20 & clarify policy
- Read our new language version support policy
- ⚠️ In this release, we drop support for Go versions 1.18 and 1.19
- Go 1.20 and 1.21 support is deprecated will be removed in the next scheduled major release (March 2026)
- Read our new language version support policy
-
#2134 Remove extraneous parameters from
CardUpdateParams
andBankAccountUpdateParams
- ⚠️ Removes
address_city
,address_country
,address_line1
,address_line2
,address_state
,address_zip
,exp_month
,exp_year
, andname
fromBankAccountUpdateParams
. These were not valid fields, so always received a 400 from the server if set. - ⚠️ Removes
account_holder_name
,account_holder_type
,cvc
,number
, andowner
fromCardAccountParams
. These were not valid fields, so always received a 400 from the server if set.
- ⚠️ Removes
-
#2129 Add
context.Context
param toV2CoreEventDestinations.Ping
- ⚠️ Adds a
context.Context
parameter to theV2CoreEventDestinations.Ping
method onstripe.Client
- ⚠️ Adds a
-
#2117 Add LastResponse to resources returned in List and Search APIs
- Add a
LastResponse
to each resource returned from either aList
orSearch
API call usingstripe.Client
. TheRawJSON
is the JSON corresponding to just that item. This is useful for accessing fields not exposed in the SDK.
for cust, err := range sc.V1Customers.List(context.TODO(), &stripe.CustomerListParams{}) { if err != nil { return err } customerJSON := cust.LastResponse.RawJSON log.Printf("Customer JSON: %s", customerJSON) // {"id":"cus_123",...} }
- Add a
-
#2119, #2115, #2130, #2140 Update generated code based on incoming API changes in the
2025-09-30.clover
API version.- ⚠️ Remove support for
BalanceReport
andPayoutReconciliationReport
onAccountSessionComponentsParams
andAccountSessionComponents
- ⚠️ Remove support for
Coupon
onDiscount
,PromotionCodeParams
, andPromotionCode
. UseDiscount.Source.Coupon
,PromotionCodeParams.Promotion.Coupon
andPromotionCode.Promotion.Coupon
instead. - ⚠️ Remove support for values
saturday
andsunday
from enumAccountSettingsPayoutsSchedule.WeeklyPayoutDays
- ⚠️ Remove support for
Iterations
onInvoiceCreatePreviewScheduleDetailsPhaseParams
andSubscriptionSchedulePhaseParams
- ⚠️ Remove support for
Link
andPayByBank
onPaymentMethodParams
- Add support for new value
prevented
on enumDispute.Status
- Add support for new resource
BalanceSettings
- Add support for
Get
andUpdate
methods on resourceBalanceSettings
- Add support for new values
external_request
andunsupported_business_type
on enumsBankAccountFutureRequirementsErrors.Code
andBankAccountRequirementsErrors.Code
- Add support for
Source
onDiscount
- Add support for
MbWayPayments
onAccountCapabilitiesParams
andAccountCapabilities
- Add support for
TrialUpdateBehavior
onBillingPortalConfigurationFeaturesSubscriptionUpdateParams
andBillingPortalConfigurationFeaturesSubscriptionUpdate
- Add support for
MbWay
onChargePaymentMethodDetails
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodParams
,PaymentMethod
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
BrandingSettings
andNameCollection
onCheckoutSessionParams
andCheckoutSession
- Add support for
ExcludedPaymentMethodTypes
onCheckoutSessionParams
,CheckoutSession
,PaymentIntentConfirmParams
, andPaymentIntentParams
- Add support for
UnitLabel
onCheckoutSessionLineItemPriceDataProductDataParams
,InvoiceAddLinesLinePriceDataProductDataParams
,InvoiceLineItemPriceDataProductDataParams
,InvoiceUpdateLinesLinePriceDataProductDataParams
, andPaymentLinkLineItemPriceDataProductDataParams
- Add support for
Alma
,Billie
, andSatispay
onCheckoutSessionPaymentMethodOptionsParams
andCheckoutSessionPaymentMethodOptions
- Add support for
DemoPay
onCheckoutSessionPaymentMethodOptionsParams
- Add support for
CaptureMethod
onCheckoutSessionPaymentMethodOptionsAffirmParams
,CheckoutSessionPaymentMethodOptionsAffirm
,CheckoutSessionPaymentMethodOptionsAfterpayClearpayParams
,CheckoutSessionPaymentMethodOptionsAfterpayClearpay
,CheckoutSessionPaymentMethodOptionsAmazonPayParams
,CheckoutSessionPaymentMethodOptionsAmazonPay
,CheckoutSessionPaymentMethodOptionsCardParams
,CheckoutSessionPaymentMethodOptionsCard
,CheckoutSessionPaymentMethodOptionsCashappParams
,CheckoutSessionPaymentMethodOptionsCashapp
,CheckoutSessionPaymentMethodOptionsKlarnaParams
,CheckoutSessionPaymentMethodOptionsKlarna
,CheckoutSessionPaymentMethodOptionsLinkParams
,CheckoutSessionPaymentMethodOptionsLink
,CheckoutSessionPaymentMethodOptionsMobilepayParams
,CheckoutSessionPaymentMethodOptionsMobilepay
,CheckoutSessionPaymentMethodOptionsRevolutPayParams
, andCheckoutSessionPaymentMethodOptionsRevolutPay
- Add support for
Flexible
onCheckoutSessionSubscriptionDataBillingModeParams
,InvoiceCreatePreviewScheduleDetailsBillingModeParams
,InvoiceCreatePreviewSubscriptionDetailsBillingModeParams
,QuoteSubscriptionDataBillingModeParams
,QuoteSubscriptionDataBillingMode
,SubscriptionBillingModeParams
,SubscriptionBillingMode
,SubscriptionMigrateBillingModeParams
,SubscriptionScheduleBillingModeParams
, andSubscriptionScheduleBillingMode
- Add support for
BusinessName
andIndividualName
onCheckoutSessionCollectedInformation
,CheckoutSessionCustomerDetails
,CustomerParams
, andCustomer
- Add support for new value
mb_way
on enumsConfirmationTokenPaymentMethodPreview.Type
andPaymentMethod.Type
- Add support for
ChargebackLossReasonCode
onDisputePaymentMethodDetailsKlarna
- Add support for
NetAmount
andProrationDetails
onInvoiceItem
- Add support for
FraudDisputabilityLikelihood
andRiskAssessment
onIssuingAuthorizationParams
- Add support for
SecondLine
onIssuingCard
- Add support for new value
mb_way
on enumPaymentIntent.ExcludedPaymentMethodTypes
- Add support for
FRMealVoucherConecs
onPaymentMethodConfigurationParams
- Add support for
Promotion
onPromotionCodeParams
andPromotionCode
- Add support for new values
acknowledged
andpayment_never_settled
on enumReview.ClosedReason
- Add support for
Provider
onTaxSettingsDefaults
- Add support for
BBPOSWisePad3
onTerminalConfigurationParams
andTerminalConfiguration
- Add support for
AddressKana
,AddressKanji
,DisplayNameKana
,DisplayNameKanji
, andPhone
onTerminalLocationParams
andTerminalLocation
- Add support for error codes
financial_connections_account_pending_account_numbers
andfinancial_connections_account_unavailable_account_numbers
onError
,InvoiceLastFinalizationError
,PaymentIntentLastPaymentError
,SetupAttemptSetupError
,SetupIntentLastSetupError
, andStripeError
- ⚠️ Remove support for