Recharge API Integration Security Checklist for Developers
Key takeaways
- Never put API credentials in an app or web page
- Trust a callback only for your own pending orders
- One order id per recharge, always
A recharge API is a payment API. If someone gets your credentials, they can spend your wallet. Most problems we see are not clever attacks, just small shortcuts taken on the first day of integration.
The checklist
- Credentials stay on the server. The app talks to your server; your server talks to the API.
- Whitelist your server IP with the provider.
- Use HTTPS everywhere, including your callback URL.
- Unique order id for every request.
- Never retry pending; check status with the same order id.
- Verify callbacks: known order id, still pending, expected values.
- Limit amounts per user and per day on your side.
- Log every request and response with time and order id.
- Change passwords when a developer leaves.
- Watch the wallet: a sudden drop should alert someone.
Create a separate, low-limit API user for testing. If test credentials leak, the damage is capped.
Shortcuts that cause trouble
- API password inside the Android app
- Sample credentials left in public documentation
- A callback that refunds without checking the order status
Conclusion
Security for a recharge integration is mostly discipline. Run this list before go-live and again every few months. Full integration details are in the API documentation.
Frequently asked questions
Where should recharge API credentials be stored?
How do I make sure a callback is genuine?
How do I avoid duplicate recharges?
Have a question? Talk to our team
Related articles
Recharge Plans in Your App: Plan API or Updating Them by Hand?
Every recharge app shows plans. Some keep them current automatically. Others rely on someone updating a list, until the day that someone is on leave.
Read more →Running a Recharge Exchange: How to Onboard LAPU Sellers Who Stay
Buyers are easy to find for a recharge exchange. Reliable sellers are not. The way you onboard them in the first week decides whether they stay.
Read more →Buying Recharge for Your App? How to Keep Success Rates Up on Peak Days
The 1st of the month, Diwali week, the day a price change is announced: every recharge platform knows these days. Your supply plan decides whether customers notice.
Read more →