1 Answers
A:
To configure your ERP finance module to throttle UPI retries, think of it like tuning a car’s turbo you want to keep the engine running smoothly without over-revving it. The goal is to retry smartly, not constantly.
When the UPI API times out or returns a 5xx error, don’t immediately retry after 2 seconds. Instead, back off exponentially:
This prevents your system from flooding NPCI or the PSP when their infrastructure is under load.
If hundreds of your ERP instances are retrying at the same time, you’ll make the situation worse. Add a random delay (±10%) to your retry intervals so retries spread out naturally.
Implement a circuit breaker pattern around your UPI integration. If the failure rate for API calls (timeouts, 5xx responses) exceeds, say, 30% within a 1-minute window, the circuit opens — meaning your ERP temporarily pauses sending new requests for 1–2 minutes. This gives the PSP time to recover and prevents your queue from blowing up.
Since capital market UPI traffic tends to be large-value and batch-based, set a category-based rate limit inside your ERP. For example:
If API latency crosses a threshold (say 3 seconds average), send an alert to your ops or finance team and automatically slow down outgoing request frequency by 30–50%.
When your ERP detects a retry condition, don’t show users a blank screen or timeout. Instead, display a soft message like:
Your UPI payment is being processed. Due to high network load, confirmation might take a few minutes. Please don’t retry manually.
That alone will stop duplicate attempts.
Keep a log of retry attempts (timestamp, API latency, response code) so you can prove later that your retry policy follows compliance and didn’t breach NPCI’s throughput expectations.
Find the Best Payment Gateway
Explore all products with features, pricing, reviews and more
View All SoftwareHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers