UNPKG

razorpay-react-sdk

Version:

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

18 lines (17 loc) 623 B
import { RazorpayOptions } from "./@types/RazorpayOptions"; /** * Utility class for handling Razorpay payments. */ export declare class RazorpayClient { private static scriptLoaded; /** * Loads the Razorpay checkout script dynamically. * @returns A promise that resolves when the script is successfully loaded. */ static loadScript(): Promise<boolean>; /** * Opens the Razorpay checkout modal with the provided options. * @param {RazorpayOptions} options - Configuration options for the Razorpay payment. */ static openPayment(options: RazorpayOptions): Promise<void>; }