diff --git a/.changeset/tender-chefs-punch.md b/.changeset/tender-chefs-punch.md
new file mode 100644
index 00000000000..d36baa4a43a
--- /dev/null
+++ b/.changeset/tender-chefs-punch.md
@@ -0,0 +1,7 @@
+---
+'@clerk/localizations': patch
+'@clerk/clerk-js': patch
+'@clerk/types': patch
+---
+
+Chore: tidy up checkout complete state for upcoming subscriptions
diff --git a/packages/clerk-js/bundlewatch.config.json b/packages/clerk-js/bundlewatch.config.json
index 7257a3b58ea..accfa9230b9 100644
--- a/packages/clerk-js/bundlewatch.config.json
+++ b/packages/clerk-js/bundlewatch.config.json
@@ -3,7 +3,7 @@
{ "path": "./dist/clerk.js", "maxSize": "590kB" },
{ "path": "./dist/clerk.browser.js", "maxSize": "73.88KB" },
{ "path": "./dist/clerk.headless*.js", "maxSize": "55KB" },
- { "path": "./dist/ui-common*.js", "maxSize": "99KB" },
+ { "path": "./dist/ui-common*.js", "maxSize": "99.2KB" },
{ "path": "./dist/vendors*.js", "maxSize": "36KB" },
{ "path": "./dist/coinbase*.js", "maxSize": "35.5KB" },
{ "path": "./dist/createorganization*.js", "maxSize": "5KB" },
@@ -20,7 +20,7 @@
{ "path": "./dist/waitlist*.js", "maxSize": "1.3KB" },
{ "path": "./dist/keylessPrompt*.js", "maxSize": "5.9KB" },
{ "path": "./dist/pricingTable*.js", "maxSize": "5.28KB" },
- { "path": "./dist/checkout*.js", "maxSize": "3KB" },
+ { "path": "./dist/checkout*.js", "maxSize": "3.05KB" },
{ "path": "./dist/paymentSources*.js", "maxSize": "8.2KB" },
{ "path": "./dist/up-billing-page*.js", "maxSize": "1KB" },
{ "path": "./dist/op-billing-page*.js", "maxSize": "1KB" },
diff --git a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
index 738b7a1aab2..3cd527627c2 100644
--- a/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
+++ b/packages/clerk-js/src/ui/components/Checkout/CheckoutComplete.tsx
@@ -3,6 +3,7 @@ import type { __experimental_CommerceCheckoutResource } from '@clerk/types';
import { Box, Button, descriptors, Heading, Icon, localizationKeys, Span, Text } from '../../customizables';
import { Drawer, LineItems, useDrawerContext } from '../../elements';
import { Check } from '../../icons';
+import { formatDate } from '../../utils';
const capitalize = (name: string) => name[0].toUpperCase() + name.slice(1);
@@ -77,18 +78,22 @@ export const CheckoutComplete = ({ checkout }: { checkout: __experimental_Commer
elementDescriptor={descriptors.checkoutSuccessTitle}
as='h2'
textVariant='h2'
- >
- {/* TODO(@COMMERCE): needs localization */}
- Payment was successful!
-
+ localizationKey={
+ checkout.subscription?.status === 'active'
+ ? localizationKeys('__experimental_commerce.checkout.title__paymentSuccessful')
+ : localizationKeys('__experimental_commerce.checkout.title__subscriptionSuccessful')
+ }
+ />
({ textAlign: 'center', paddingInline: t.space.$8, marginBlockStart: t.space.$2 })}
- >
- {/* TODO(@COMMERCE): needs localization */}
- Minim adipisicing enim fugiat enim est ad nisi exercitation nisi exercitation quis culpa.
-
+ localizationKey={
+ checkout.subscription?.status === 'active'
+ ? localizationKeys('__experimental_commerce.checkout.description__paymentSuccessful')
+ : localizationKeys('__experimental_commerce.checkout.description__subscriptionSuccessful')
+ }
+ />
@@ -100,8 +105,7 @@ export const CheckoutComplete = ({ checkout }: { checkout: __experimental_Commer
>
- {/* TODO(@COMMERCE): needs localization */}
-
+
- {/* TODO(@COMMERCE): needs localization */}
-
+
- {/* TODO(@COMMERCE): needs localization */}
-
+