A customer messages support: the money left their account, the app says the order failed. You open the Razorpay Dashboard and the payment is sitting there with status authorized. Not failed, not captured. If you have ever searched "razorpay payment authorized not captured" at 11pm, this post is for you. The short version: the bank has blocked the funds, Razorpay is waiting for someone to capture them, and if nobody does, the money goes back to the customer on a timer you may not know you configured.
What "authorized" actually means
A card or UPI payment on Razorpay goes through two steps. Authorization is the bank saying yes, the customer has the money and it's now reserved. Capture is you saying yes, I'm keeping it. Only captured payments get settled to your bank account.
Most integrations never think about this because the default does the work for them. Razorpay's capture settings documentation describes automatic capture as the default, where payments authorized within the configured window get captured without you lifting a finger. Problems start when one of these is true:
- Someone changed the Dashboard capture setting to manual, or added a custom timeout, and the backend was never told.
- Your order creation call passes its own capture options, which override the Dashboard (Razorpay's docs state that capture values in the Orders API take precedence).
- The payment was created without an order at all, on an older integration path.
- Your code is meant to capture manually, but the capture job failed, timed out, or never ran.
The fourth one is the most common in our experience. A manual capture flow is fine. A manual capture flow with no retry and no alerting is a refund generator.
The auto-refund window
Razorpay does not hold authorized money forever. Per the capture settings docs, payments still in the authorized state after the timeout are refunded automatically to the customer, and that refund is a normal refund, which Razorpay says lands in 5 to 7 working days. This is not optional. You can't extend it past the maximum.
The numbers worth knowing, from the current docs:
- On the Dashboard, the auto-capture and manual capture timeouts each have a minimum of 12 minutes and a maximum (and default) of 3 days.
- When you set capture options per order through the API,
automatic_expiry_periodandmanual_expiry_periodare in minutes. The API reference lists a minimum of 12 minutes for the automatic period and a default and maximum of 7,200 minutes for the manual period, which must be equal to or greater than the automatic one.
Those two pages don't describe the window in the same terms, so check the docs for your account rather than trusting a number from a blog, including this one. What matters for your design is the shape: there is an auto-capture window, then a manual capture window, then a forced refund.
That refund is often why customers say "I paid and got my money back a week later". It wasn't a reversal by their bank. It was your system never capturing.
Fixing a razorpay payment authorized not captured, step by step
1. Decide if you even want manual capture
Manual capture makes sense when you can't confirm the order at payment time: limited stock that needs a reservation check, a service that needs acceptance from a provider, a booking that might be rejected. If none of that applies to you, switch to automatic capture and the problem mostly disappears. We'd pick automatic for most storefronts and subscription apps.
2. Set capture explicitly on every order
Don't rely on whoever last edited the Dashboard. Set it in code, when you create the order on your server. This is the shape from Razorpay's capture settings API page:
{
"amount": 50000,
"currency": "INR",
"receipt": "rcptid_11",
"payment": {
"capture": "automatic",
"capture_options": {
"automatic_expiry_period": 12,
"manual_expiry_period": 7200,
"refund_speed": "optimum"
}
}
}
refund_speed controls how the forced refund goes out if nothing captures it: normal for the 5 to 7 working day route, optimum to use your Dashboard's refund speed setting. Pick on purpose. A customer whose order failed and who then waits a week for their money will remember your brand for the wrong reason.
3. Capture through the API, and handle the errors
The capture call is POST https://api.razorpay.com/v1/payments/{id}/capture with amount and currency. The amount has to equal the authorized amount, and the currency has to match the payment. The errors you'll actually see:
- "Capture amount must be equal to the amount authorized": you're computing the amount again on the server and it drifted (a coupon, a rounding change, paise vs rupees). Read the amount from the payment or your stored order, never from the request.
- "Payment is not in authorized state": it's already refunded, failed, or captured.
- "The payment has already been either captured or voided": your capture ran twice. Treat this as success if the payment is captured, not as a crash.
That last point matters. Make capture idempotent. Fetch the payment first, capture only if it's authorized, and record the result against your own order ID.
4. Listen for webhooks, then reconcile anyway
Subscribe to payment.authorized, payment.captured and payment.failed. If you're on manual capture, payment.authorized is your trigger to run the business check and capture. Verify the X-Razorpay-Signature header on the raw body before you act on anything.
Webhooks get delayed, dropped and retried, so don't stop there. Run a scheduled job that lists payments still in authorized state older than a threshold well inside your manual window, and either captures them or flags them to a human. On the payment portal we built for an ed-tech platform, post-payment reconciliation was a first-class part of the system, not a cleanup script, because webhooks alone will eventually miss one.
5. Fix the client-side lie
The customer saw "order failed" while the money was authorized. That's usually the frontend deciding the outcome from the checkout callback. Your server should decide, after verifying the payment signature and checking the payment status with Razorpay. Show "payment received, confirming your order" while that happens. A pending screen is much better than a false failure.
What to monitor
- Count of payments in
authorizedstate older than one hour. This should be zero on automatic capture. - Count of auto-refunds per day. Any steady number here means a capture path is broken.
- Capture API error rate, split by error message.
- Webhook delivery failures from the Dashboard.
Put the first two on an alert. They're the ones that turn into support tickets and chargeback threats a few days later.
If you want someone to look over your Razorpay flow, or build the checkout and reconciliation side properly from the start, that's work we do at orithLabs as part of our e-commerce development service. The first call is free, and we'll tell you honestly if your setup just needs one config change.