File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
packages/thirdweb/src/react/web/ui Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -359,6 +359,7 @@ export function PayEmbed(props: PayEmbedProps) {
359359 client = { props . client }
360360 theme = { theme }
361361 title = { metadata ?. name || "Buy" }
362+ onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
362363 tokenAddress = {
363364 props . payOptions . prefillBuy . token ?. address as Address | undefined
364365 }
@@ -376,6 +377,7 @@ export function PayEmbed(props: PayEmbedProps) {
376377 image = { metadata ?. image }
377378 name = { metadata ?. name || "Checkout" }
378379 seller = { props . payOptions . paymentInfo . sellerAddress as Address }
380+ onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
379381 theme = { theme }
380382 tokenAddress = {
381383 props . payOptions . paymentInfo . token ?. address as Address | undefined
@@ -391,6 +393,7 @@ export function PayEmbed(props: PayEmbedProps) {
391393 description = { metadata ?. description }
392394 image = { metadata ?. image }
393395 theme = { theme }
396+ onSuccess = { ( ) => props . payOptions ?. onPurchaseSuccess ?.( ) }
394397 title = { metadata ?. name }
395398 transaction = { props . payOptions . transaction }
396399 />
You can’t perform that action at this time.
0 commit comments