PayUIOptions

type PayUIOptions = Prettify<
{
buyWithCrypto?:
| false
| {
prefillSource?: {
allowEdits?: { chain: boolean; token: boolean };
chain: Chain;
token?: TokenInfo;
};
testMode?: boolean;
};
buyWithFiat?:
| {
preferredProvider?: FiatProvider;
prefillSource?: {
currency?: "USD" | "CAD" | "GBP" | "EUR" | "JPY";
};
testMode?: boolean;
}
| false;
metadata?: { image?: string; name?: string };
onPurchaseSuccess?: (
info:
| { status: BuyWithCryptoStatus; type: "crypto" }
| { status: BuyWithFiatStatus; type: "fiat" },
) => void;
purchaseData?: object;
>;