@eduvidu/react-razorpay-payment
v2.0.2
Published
A lightweight React wrapper for Razorpay Checkout.
Downloads
127
Maintainers
Keywords
Readme
@eduvidu/react-razorpay-payment
A lightweight, TypeScript-first Razorpay Checkout integration for React.
It provides a chainable API, dynamic script loading, and full type safety for seamless payment integration.
🚀 Installation
npm install @eduvidu/react-razorpay-payment
# or
yarn add @eduvidu/react-razorpay-payment
```markdown
## 🧩 Usage Example
```tsx
import { RazorPayService } from "@eduvidu/react-razorpay-payment";
const payNow = () => {
const razorPay = new RazorPayService();
razorPay
.setKey(SETYOURKEY)
.setAmount(50000)
.setCurrency("INR")
.setName("EduViTech Pvt Ltd")
.setDescription("Demo Payment")
.openPaymentGateway();
};