UNPKG

razorpay-react-sdk

Version:

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

40 lines (39 loc) 1.44 kB
export type Prefill = { /** * Cardholder's name. */ name?: string; /** * Customers's email address. */ email?: string; /** * Represents a customer's phone number. * * The phone number should be in the format: `+{country code}{phone number}`. * If the country code is not specified, `+91` (India) will be used as the default country code. * * Examples: * - `+14155552671` (a valid non-Indian number) * - `+919977665544` (a valid Indian number) * * If only the phone number is provided without a country code (e.g., `9977665544`), * the default country code `+91` will be prepended, resulting in `+919977665544`. */ contact?: string; /** * Represents the pre-selection of a payment method for the customer. * * This will only work if both the `contact ` and `email` are also pre-filled. * The payment method can be one of the following possible values: * * - `card`: Payment via credit or debit card * - `netbanking`: Payment via internet banking * - `wallet`: Payment via a digital wallet * - `emi`: Payment via equated monthly installments (EMI) * - `upi`: Payment via Unified Payments Interface (UPI) * * Note: Pre-selection will only occur when both the contact and email fields are populated. */ method?: "card" | "netbanking" | "wallet" | "emi" | "upi"; };