We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 916d108 commit 7eed960Copy full SHA for 7eed960
apps/dashboard/src/app/pay/components/client/PayPageEmbed.client.tsx
@@ -52,7 +52,18 @@ export function PayPageEmbed({
52
name,
53
image,
54
},
55
- purchaseData,
+ // Validate and sanitize purchaseData
56
+ const sanitizedPurchaseData = purchaseData && typeof purchaseData === 'object'
57
+ ? purchaseData
58
+ : undefined;
59
+
60
+ payOptions={{
61
+ metadata: {
62
+ name,
63
+ image,
64
+ },
65
+ purchaseData: sanitizedPurchaseData,
66
+ }}
67
mode: "direct_payment",
68
paymentInfo: {
69
chain,
0 commit comments