UNPKG

razorpay-react-sdk

Version:

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

8 lines (7 loc) 354 B
import { RazorpayOptions } from "./@types/RazorpayOptions"; /** * Custom hook to open a Razorpay payment modal. * @param {RazorpayOptions} options - Configuration options for the Razorpay payment. * @returns A function that triggers the payment flow when called. */ export declare function useRazorpay(options: RazorpayOptions): () => Promise<void>;