Payfast Gateway encryption key update
Update your Payfast Gateway encryption key in WHMCS
The WHMCS module holds two keys: your PayHost encryption key and, for PayBatch, your PayXML encryption key. These steps cover both.
Before you start
- Have your new PayHost encryption key ready, and your new PayXML encryption key if you generated one (PayBatch uses the PayXML key). You generate them in the Merchant Access Portal, as set out in the security update email from Payfast.
- You need a WHMCS administrator login that is allowed to configure payment gateways, and that administrator’s password.
- The key saved in WHMCS must match the key on your Payfast Gateway account. Payments will fail while the two are different, so make this change as soon as your new key is active.
Steps
- Log in to your WHMCS admin area.
- Click the wrench icon at the top right of the page, then click System Settings.
- Click Payment Gateways. You can type its name in the search box on the left to find it.
- If WHMCS asks you to confirm your password, enter your administrator password and click Confirm Password.
- Click the bar for the Payfast Gateway module to open its settings. The module name is shown in brackets on the right of each bar: look for (Payfast Gateway), or on older versions (PayGate PayHost / PayBatch Gateway). Do not open the bar marked (Payfast Aggregation), which is a different product.
- Check that the Test Mode box is not ticked. While it is ticked the module ignores your key and uses a test account.
- In the Encryption Key field, delete the dots and enter your new PayHost key, with no spaces before or after it. On older versions this field is called PayHost Secret Key.
- Leave Terminal ID (called PayHost ID on older versions) and PayBatch ID as they are. In the PayBatch Secret Key field, enter your new PayXML encryption key if you generated one, with no spaces before or after it.
- Click the blue Save Changes button below the fields. Do not click the red Deactivate button next to it.
- Pay a test invoice with Payfast Gateway to confirm that the payment goes through.
If payments fail after the change
- Open the gateway settings again and re-enter the key exactly as supplied, with no extra spaces. The field only shows dots, so the key cannot be read back to check it.
- Check that the Test Mode box is not ticked.
- If payments still fail, contact Payfast support: email [email protected], call 021 300 4455 or use the live chat on payfast.io.