File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet/screens/Buy/fiat Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Add support for filtering fiat payment providers in PayEmbed
Original file line number Diff line number Diff line change 11import { useState } from "react" ;
2+ import { getErrorMessage } from "src/react/web/utils/errors.js" ;
23import { trackPayEvent } from "../../../../../../../analytics/track/pay.js" ;
34import type { Chain } from "../../../../../../../chains/types.js" ;
45import type { ThirdwebClient } from "../../../../../../../client/client.js" ;
@@ -11,7 +12,6 @@ import type { Theme } from "../../../../../../core/design-system/index.js";
1112import type { PayUIOptions } from "../../../../../../core/hooks/connection/ConnectButtonProps.js" ;
1213import { useBuyWithFiatQuote } from "../../../../../../core/hooks/pay/useBuyWithFiatQuote.js" ;
1314import { PREFERRED_FIAT_PROVIDER_STORAGE_KEY } from "../../../../../../core/utils/storage.js" ;
14- import { getErrorMessage } from "../../../../../utils/errors.js" ;
1515import {
1616 Drawer ,
1717 DrawerOverlay ,
@@ -106,8 +106,8 @@ export function FiatScreenContent(props: {
106106 isTestMode : buyWithFiatOptions ?. testMode ,
107107 purchaseData : props . payOptions . purchaseData ,
108108 fromAddress : payer . account . address ,
109- preferredProvider : preferredProvider ,
110109 paymentLinkId : paymentLinkId ,
110+ preferredProvider : preferredProvider ?? "COINBASE" ,
111111 }
112112 : undefined ,
113113 ) ;
You can’t perform that action at this time.
0 commit comments