Skip to content

Commit 6273adb

Browse files
committed
Pass purchaseData prop to payment components
Added the purchaseData prop from payOptions to the payment components in PayEmbed. This enables passing additional purchase-related data to the payment flows.
1 parent d0fa1b1 commit 6273adb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/thirdweb/src/react/web/ui/PayEmbed.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ export function PayEmbed(props: PayEmbedProps) {
363363
? ["card"]
364364
: ["crypto", "card"]
365365
}
366+
purchaseData={props.payOptions?.purchaseData}
366367
theme={theme}
367368
title={metadata?.name || "Buy"}
368369
tokenAddress={
@@ -387,6 +388,7 @@ export function PayEmbed(props: PayEmbedProps) {
387388
? ["crypto"]
388389
: ["crypto", "card"]
389390
}
391+
purchaseData={props.payOptions?.purchaseData}
390392
seller={props.payOptions.paymentInfo.sellerAddress as Address}
391393
theme={theme}
392394
tokenAddress={
@@ -408,6 +410,7 @@ export function PayEmbed(props: PayEmbedProps) {
408410
? ["crypto"]
409411
: ["crypto", "card"]
410412
}
413+
purchaseData={props.payOptions?.purchaseData}
411414
theme={theme}
412415
title={metadata?.name}
413416
transaction={props.payOptions.transaction}

0 commit comments

Comments
 (0)