diff --git a/CHANGELOG.md b/CHANGELOG.md index e5ebe52693..8bff2fd476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## x.x.x - x.x.x + +**Changes** +- CustomerSession is now generally available. The `customerSessionClientSecret` parameter is no longer experimental. +- ConfirmationTokens are now generally available. The `confirmationTokenConfirmHandler` parameter and `ConfirmationToken.Result` type are no longer experimental. + ## 0.55.1 - 2025-10-23 **Fixes** diff --git a/src/types/ConfirmationToken.ts b/src/types/ConfirmationToken.ts index eb43f2d448..ad880bf607 100644 --- a/src/types/ConfirmationToken.ts +++ b/src/types/ConfirmationToken.ts @@ -4,9 +4,6 @@ import type { Type as PaymentMethodType } from './PaymentMethod'; /** * ConfirmationToken result type. - * - * @internal DO NOT USE - This API is under active development and is not ready for use. - * The API is subject to breaking changes without notice. Do not use in production or development. */ export interface Result { /** Unique identifier for the object (e.g. `ctoken_...`). */ diff --git a/src/types/EmbeddedPaymentElement.tsx b/src/types/EmbeddedPaymentElement.tsx index 3098b412ed..f76f77fa84 100644 --- a/src/types/EmbeddedPaymentElement.tsx +++ b/src/types/EmbeddedPaymentElement.tsx @@ -135,11 +135,9 @@ export interface EmbeddedPaymentElementConfiguration { merchantDisplayName: string; /** The identifier of the Stripe Customer object. See https://stripe.com/docs/api/customers/object#customer_object-id */ customerId?: string; - /** A short-lived token that allows the SDK to access a Customer’s payment methods. */ + /** A short-lived token that allows the SDK to access a Customer's payment methods. */ customerEphemeralKeySecret?: string; - /** (Experimental) This parameter can be changed or removed at any time (use at your own risk). - * The client secret of this Customer Session. Used on the client to set up secure access to the given customer. - */ + /** The client secret of this Customer Session. Used on the client to set up secure access to the given customer. */ customerSessionClientSecret?: string; /** iOS only. Enable Apple Pay in the Payment Sheet by passing an ApplePayParams object. */ applePay?: PaymentSheetTypes.ApplePayParams; diff --git a/src/types/PaymentSheet.ts b/src/types/PaymentSheet.ts index 1e19449f91..315234b3b9 100644 --- a/src/types/PaymentSheet.ts +++ b/src/types/PaymentSheet.ts @@ -97,9 +97,7 @@ export type SetupParams = }) | (SetupParamsBase & { customerEphemeralKeySecret?: never; - /** (Experimental) This parameter can be changed or removed at any time (use at your own risk). - * The client secret of this Customer Session. Used on the client to set up secure access to the given customer. - */ + /** The client secret of this Customer Session. Used on the client to set up secure access to the given customer. */ customerSessionClientSecret: string; }) | SetupParamsBase; @@ -580,9 +578,6 @@ export type IntentConfiguration = { ) => void; /** - * @internal DO NOT USE - This API is under active development and is not ready for use. - * The API is subject to breaking changes without notice. Do not use in production or development. - * * Called when the customer confirms payment using confirmation tokens. * Your implementation should follow the guide to create (and optionally confirm) a PaymentIntent or SetupIntent on your server and call the `intentCreationCallback` with its client secret or an error if one occurred. *