Why am I getting a signature mismatch error on WHMCS?
If you are using a WordPress installation along with a WHMCS bridge plugin, the cause is that the WordPress plugin modifies the output of the values sent through to PayFast. In order to fix this, you need to comment out the signature generation part of a file located with your WHMCS modules folder. Go to file, /modules/gateways/payfast.php, and at line 209, comment out the following lines:
//$pfdata['signature'] = md5( $pfOutput ); //line 200
You also need to ensure that the Require Signature setting is disabled on your PayFast Dashboard under Settings > Integration > Payment Page Settings.
Related Articles
Common causes of a failed integration / signature mismatch
The following will cause a signature mismatch or a payment to fail: This is most likely caused if you generated the MD5 hashed string with the variables in the wrong order. A required field is missing. A field is greater than the allowable character ...
On Zen Cart, my customers are getting the error “amount is required”.
Getting the error as detailed below, is most likely due to your currency configuration which is incorrect and the amount is therefore coming through as 0.00. Our module requires that you use ZAR as your primary currency and that it is configured with ...
Why do I get an 'invalid url' error message when being redirected from WHMCS to PayFast?
This is due to one of two reasons: you are testing from a non internet accessible machine (eg. a local development machine) or you have not setup your URLs in WHMCS correctly. Non internet accessible machine The module will only perform as expected ...
Why am I getting a merchant_id / merchant_key error?
This may be due to using your live Merchant ID and Key for the sandbox. When testing in sandbox, you can either use our default sandbox credentials or you can use your own unique sandbox credentials. For sandbox credentials without a passphrase: ...
Why am I getting a 'currency format invalid' error?
Payfast only processes transactions in ZAR and does not provide a currency conversion service. This means the base currency of your store and product prices will need to be set to ZAR for us to be able to process the transaction. However, you may ...