Paise and rupees
A Bengaluru fintech integrates Razorpay refunds. The API works in paise; the new code passes rupees.
await razorpay.payments.refund(paymentId, {
amount: order.totalRupees,
});Razorpay amounts are in paise. Passing order.totalRupees refunds 1/100th of the amount — a ₹1,500 order would refund ₹15. Multiply by 100 or use totalPaise.
Result: A unit bug that would have produced a wave of support tickets is fixed in review.