PayUIOptions

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