diff --git a/.changeset/short-foxes-decide.md b/.changeset/short-foxes-decide.md new file mode 100644 index 00000000000..10bb5bd3084 --- /dev/null +++ b/.changeset/short-foxes-decide.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Fix purchaseData propagation in PayEmbed component to new widget implementations diff --git a/packages/thirdweb/src/react/web/ui/PayEmbed.tsx b/packages/thirdweb/src/react/web/ui/PayEmbed.tsx index dc1031ee231..c15ea32cdc1 100644 --- a/packages/thirdweb/src/react/web/ui/PayEmbed.tsx +++ b/packages/thirdweb/src/react/web/ui/PayEmbed.tsx @@ -363,6 +363,9 @@ export function PayEmbed(props: PayEmbedProps) { ? ["card"] : ["crypto", "card"] } + purchaseData={ + props.payOptions?.purchaseData as Record | undefined + } theme={theme} title={metadata?.name || "Buy"} tokenAddress={ @@ -387,6 +390,9 @@ export function PayEmbed(props: PayEmbedProps) { ? ["crypto"] : ["crypto", "card"] } + purchaseData={ + props.payOptions?.purchaseData as Record | undefined + } seller={props.payOptions.paymentInfo.sellerAddress as Address} theme={theme} tokenAddress={ @@ -408,6 +414,9 @@ export function PayEmbed(props: PayEmbedProps) { ? ["crypto"] : ["crypto", "card"] } + purchaseData={ + props.payOptions?.purchaseData as Record | undefined + } theme={theme} title={metadata?.name} transaction={props.payOptions.transaction}