UNPKG

razorpay-react-sdk

Version:

A simple Razorpay integration package for React & Next.js with TypeScript support.

59 lines (58 loc) 1.73 kB
/** * Parameters that enable configuration of checkout display language and payment methods. */ export type Config = { /** * Child parameter that enables configuration of checkout display language. */ display: { /** * The language in which checkout should be displayed. * Possible values: * - `en`: English * - `ben`: Bengali * - `hi`: Hindi * - `mar`: Marathi * - `guj`: Gujarati * - `tam`: Tamil * - `tel`: Telugu */ language?: "en" | "ben" | "hi" | "mar" | "guj" | "tam" | "tel"; /** * Configuration for payment method blocks. * Allows grouping and customizing payment methods. */ blocks?: { [key: string]: { name: string; instruments: Array<{ method: string; issuers?: string[]; banks?: string[]; wallets?: string[]; }>; }; }; /** * Sequence of blocks to display in the checkout. * Defines the order of blocks during checkout. */ sequence?: string[]; /** * Preferences for displaying payment methods. * Provides control over the visibility of default blocks. */ preferences?: { show_default_blocks?: boolean; }; /** * List of payment methods to hide in the checkout. * Allows exclusion of specific payment methods. */ hide?: Array<{ method: string; issuers?: string[]; banks?: string[]; }>; }; };