Skip to content

Commit 916d108

Browse files
committed
Enhance PayPageEmbed component to include purchaseData prop for improved payment link handling
1 parent 926dad4 commit 916d108

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

apps/dashboard/src/app/pay/[id]/page.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export default async function PayPage({
6565
name={paymentLink.title}
6666
image={paymentLink.imageUrl}
6767
theme={theme}
68+
purchaseData={paymentLink.purchaseData}
6869
/>
6970
);
7071
}

apps/dashboard/src/app/pay/components/client/PayPageEmbed.client.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function PayPageEmbed({
1616
image,
1717
redirectUri,
1818
theme,
19+
purchaseData,
1920
}: {
2021
chainId: number;
2122
recipientAddress: string;
@@ -27,6 +28,7 @@ export function PayPageEmbed({
2728
redirectUri?: string;
2829
clientId: string;
2930
theme?: "light" | "dark";
31+
purchaseData: unknown | undefined;
3032
}) {
3133
const { theme: browserTheme, setTheme } = useTheme();
3234

@@ -50,6 +52,7 @@ export function PayPageEmbed({
5052
name,
5153
image,
5254
},
55+
purchaseData,
5356
mode: "direct_payment",
5457
paymentInfo: {
5558
chain,

0 commit comments

Comments
 (0)