PayEmbed
Embed a prebuilt UI for funding wallets, purchases or transactions with crypto or fiat.
By default, the PayEmbed
component will allows users to fund their wallets with crypto or fiat on any of the supported chains..
You can set the mode
option to "fund_wallet"
to allow users to top up their wallets with crypto or fiat.
You can set the mode
option to "direct_payment"
to allow users to make a direct payment to a wallet address.
You can set the mode
option to "transaction"
to allow users to execute a transaction with a different wallet, chain or token.
You can also handle ERC20 payments by passing erc20value
to your transaction:
You can disable the use of crypto or fiat by setting the buyWithCrypto
or buyWithFiat
options to false
.
Refer to the Theme
type for more details.
You can customize the wallet connection flow by passing a connectOptions
object to the PayEmbed
component.
Refer to the PayEmbedConnectOptions
type for more details.
@buyCrypto