Appearance
Backup and restore
PhonePe for WHMCS is a WHMCS payment gateway with no built-in backup system — no automatic pre-update snapshot and no one-click restore. You protect it with standard WHMCS practice: back up your database, and copy the gateway files before you change anything.
Back up before every update
Because a manual update overwrites files directly, always take a backup first. Capture:
- A WHMCS database backup — this holds your gateway configuration (Client ID, webhook credentials, payment mode, License Key) along with your invoice and transaction records. Use WHMCS's automated backups (Configuration → System Settings → General → Other) or your host's tools (a
mysqldumpor cPanel/Plesk backup). - The gateway files you're about to overwrite:
modules/gateways/phonepe.phpmodules/gateways/phonepe/(the whole directory)modules/gateways/callback/phonepe.php
Keep a copy off the server
Store at least one recent backup somewhere other than the WHMCS server itself, so a server problem never takes your backups with it.
Where backups are stored
There is no backup folder created by the gateway. Your database backup lives wherever your WHMCS or host backup process puts it, and your file copies live wherever you save them — a dated folder outside the web root, or a downloaded archive. Keep at least one copy off the server.
Rolling back
To return to a previous working state after a bad update:
- Restore the module files you copied back into
modules/gateways/, overwriting the newer ones. - Restore the WHMCS database backup only if the update involved database changes.
- Open Setup → Payment Gateways → PhonePe, confirm the settings, Save Changes, and run a test payment.
Related pages
- Updating — the manual update flow that this protects
- Uninstalling — removing the gateway entirely
- Troubleshooting — when a payment or webhook fails