---
url: /phonepe-whmcs/updating.md
description: >-
  How to update PhonePe for WHMCS — download the latest build from your
  relyweb.co client area and overwrite the gateway files. There is no in-app
  updater.
---

# Updating

PhonePe for WHMCS is a WHMCS payment gateway, so it updates **manually** — there is no in-app
updater, no *Check for Updates* button, and no *Update Now*. You download the latest build from
your **relyweb.co client area** and overwrite the gateway files.

## Before you update

A manual update overwrites files in place, so take a backup first — see
[Backup and restore](/phonepe-whmcs/backup-and-restore). At minimum, capture:

* A **WHMCS database backup** — your saved gateway settings and transaction records live here.
* A copy of the **module files you're about to overwrite**.

## Download the update

Sign in to your **relyweb.co client area** and open the PhonePe for WHMCS product to download the
latest release. Your entitlement to new versions follows your license:

* **Leased** — you can download updates for as long as your license is active.
* **Lifetime** — you keep your installed version forever; downloading a **newer** version needs an
  active **Support & Updates** plan. If it has lapsed, your current version keeps running — renew
  Support & Updates to download newer releases.

## Install the update

Overwrite the existing gateway files with the new copies:

* `modules/gateways/phonepe.php`
* `modules/gateways/phonepe/` (the whole directory)
* `modules/gateways/callback/phonepe.php`

Then open **Setup → Payment Gateways → PhonePe**, confirm your settings — **Client ID**, **Client
Secret**, webhook username/password, payment mode, and **License Key** — are still in place, **Save
Changes**, and take a sandbox or live test payment to confirm the gateway still processes correctly.

::: info Your settings are safe
Overwriting the files does not clear the settings you saved on the gateway page — those live in
WHMCS, not in the files you're replacing. Re-check them after the upload.
:::

## If an update won't apply

* Make sure every file uploaded to the correct WHMCS path and the old ones were overwritten,
  including the `phonepe/` directory and the callback file.
* Confirm the web-server user can read the new files.
* Check your **ionCube Loader** is 13.0.2 or newer — a newer encoded build may need a matching
  loader (see [Requirements](/phonepe-whmcs/requirements)).
* If payments stop after the update, re-check the **License Key** and settings, then review
  **Utilities → Logs → Gateway Log**.

## Related pages

* [Backup and restore](/phonepe-whmcs/backup-and-restore) — back up before you overwrite
* [Licensing](/phonepe-whmcs/licensing) — how your license type affects updates
* [Uninstalling](/phonepe-whmcs/uninstalling) — the files that make up the module
* [Troubleshooting](/phonepe-whmcs/troubleshooting) — resolving post-update problems
