paymentCapture: false, handle the payment.authorized webhook, and call the capture endpoint when you are ready.
1
Create an order with paymentCapture disabled
Pass
paymentCapture: false when creating the order. Razorpay will authorize the customer’s funds but will not automatically capture them.server.ts
2
Collect payment with Razorpay Checkout
The client flow is the same as a normal one-time payment. The customer completes Checkout and the payment enters an
authorized state instead of captured.checkout.tsx
3
Handle payment.authorized
When the payment is authorized, the plugin fires the
onPaymentAuthorized callback. Use this to run your business logic, for example checking stock levels or running a fraud review.auth.ts
4
Capture the payment
Once your checks pass, call the capture endpoint to finalize the charge. You can capture the full amount or a smaller amount (partial capture).On the client:
capture.ts
Why use manual capture?
Manual capture is useful when you need time between authorization and fulfillment:- Inventory checks: Confirm the item is in stock before charging the customer.
- Fraud review: Hold funds while you run risk checks.
- Shipping confirmation: Capture only after the order ships.
Razorpay automatically refunds authorized payments that are not captured within a certain window. Check the Razorpay documentation for the exact capture window for your account and payment method.