Skip to content

Commit 5eeeb0f

Browse files
author
FalkWolsky
committed
Adding Success Page
1 parent dd1784b commit 5eeeb0f

File tree

3 files changed

+39
-7
lines changed

3 files changed

+39
-7
lines changed

client/packages/lowcoder/src/constants/routesURL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const OAUTH_PROVIDER_DETAIL = "/setting/oauth-provider/detail";
2525
export const PERMISSION_SETTING_DETAIL = `${PERMISSION_SETTING}/:groupId`;
2626
export const ORGANIZATION_SETTING_DETAIL = `${ORGANIZATION_SETTING}/:orgId`;
2727

28-
export const SUBSCRIPTION_SUCCESS = `${SUBSCRIPTION_SETTING}/success/:session_id`;
28+
export const SUBSCRIPTION_SUCCESS = `${SUBSCRIPTION_SETTING}/success`;
2929
export const SUBSCRIPTION_CANCEL = `${SUBSCRIPTION_SETTING}/cancel`;
3030
export const SUBSCRIPTION_ERROR = `${SUBSCRIPTION_SETTING}/error`;
3131
export const SUBSCRIPTION_DETAIL = `${SUBSCRIPTION_SETTING}/details/:subscriptionId/:productId`;

client/packages/lowcoder/src/i18n/locales/en.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,10 @@ export const en = {
23022302
"manageSubscription" : "Manage Your Subscription",
23032303
"subscriptionHelp" : "Subscription Help",
23042304
"subscriptionHelpDescription" : "If you have any questions, please contact us. We are happy to help you. service@lowcoder.cloud",
2305+
"success" : "Payment & Subscription Success",
2306+
"successTitle" : "Thank you for your trust in Lowcoder!",
2307+
"successThankYou" : "Your trust and decision to partner with us mean the world to our entire team. We want you to know that we are fully committed to delivering exceptional service, unparalleled support, and continuous value every step of the way. At Lowcoder, our customers are at the heart of everything we do. We are passionate about helping you achieve your goals, and we take pride in being more than just a platform. Whether it's providing quick solutions, building innovative features, or simply being there when you need us, we are dedicated to making your experience outstanding. Thank you for inspiring us to strive for excellence every day. We love what we do, and we couldn’t do it without incredible customers like you. Welcome aboard, and let’s create something extraordinary together!",
2308+
"successLowcoderTeam" : "The Lowcoder Team",
23052309
},
23062310
"subscriptionError": {
23072311
"fetchProductDetails": "Error fetching product details.",

client/packages/lowcoder/src/pages/setting/subscriptions/subscriptionSuccess.tsx

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ import { trans } from "i18n";
55
import { HeaderBack } from "../permission/styledComponents";
66
import history from "util/history";
77
import { SUBSCRIPTION_SETTING } from "constants/routesURL";
8-
import { Flex } from 'antd';
9-
import { ProductCard } from "./productCard";
8+
import { Flex, Typography, Card } from 'antd';
9+
import { ArrowIcon } from "lowcoder-design";
10+
11+
const { Title, Paragraph } = Typography;
1012

1113
const SubscriptionSuccessContent = styled.div`
1214
max-width: 840px;
@@ -25,13 +27,26 @@ const SubscriptionSuccessContent = styled.div`
2527
color: ${GreyTextColor};
2628
margin-bottom: 14px;
2729
font-size: 13px;
28-
}
30+
}
2931
`;
3032

3133
const Wrapper = styled.div`
3234
padding: 32px 24px;
3335
`;
3436

37+
const SuccessCard = styled(Card)`
38+
max-width: 100%;
39+
margin-top: 40px;
40+
text-align: left;
41+
`;
42+
43+
const ImageWrapper = styled.div`
44+
margin: 40px 0;
45+
img {
46+
width: 100%;
47+
height: auto;
48+
}
49+
`;
3550

3651
// Helper function to get query params
3752
const useQuery = () => {
@@ -48,10 +63,23 @@ export function SubscriptionSuccess() {
4863
<span onClick={() => history.push(SUBSCRIPTION_SETTING)}>
4964
{trans("settings.subscription")}
5065
</span>
66+
<ArrowIcon />
67+
<span>{trans("subscription.success")}</span>
5168
</HeaderBack>
52-
<div>
53-
<h1>{`SUCCESS | Session ID: ${session_id}`}</h1>
54-
</div>
69+
{/* Success Content */}
70+
<SuccessCard bordered>
71+
<SubscriptionSuccessContent>
72+
<Title level={2}>{trans("subscription.successTitle")}</Title>
73+
<Paragraph>{trans("subscription.successThankYou")}</Paragraph>
74+
75+
{/* Success Image */}
76+
<ImageWrapper>
77+
<img src="https://raw.githubusercontent.com/lowcoder-org/lowcoder-media-assets/refs/heads/main/images/Lowcoder%20Team.jpg" alt={trans("subscription.successImageAlt")} />
78+
</ImageWrapper>
79+
80+
<Paragraph>{trans("subscription.successLowcoderTeam")}</Paragraph>
81+
</SubscriptionSuccessContent>
82+
</SuccessCard>
5583
</Wrapper>
5684
);
5785
}

0 commit comments

Comments
 (0)