@funkit/connect
Version:
Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.
18 lines (17 loc) • 734 B
TypeScript
import { PaymentMethod } from '../../../domains/paymentMethods';
import type { FunkitCheckoutConfig } from '../../../providers/FunkitCheckoutContext';
export interface CheckoutAmountLimitsUsd {
minUsd: number | undefined;
maxUsd: number;
}
/**
* Resolves the min/max USD bounds for the amount input based on the active
* payment method:
* - Bitcoin Lightning and brokerage checkouts carry their own floors/ceilings.
* - Everything else uses the customer-configured min deposit and the global
* max-checkout dynamic config.
*/
export declare const useCheckoutAmountLimits: ({ checkoutConfig, paymentMethod, }: {
checkoutConfig: FunkitCheckoutConfig;
paymentMethod: PaymentMethod;
}) => CheckoutAmountLimitsUsd;