On WHMCS I’m getting a signature mismatch error, why?

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

    • In WooCommerce, why am I getting error ‘Signature is required’?

      If the setting for ‘Require Signature’ has been enabled on your PayFast account, this error message will occur since the WooCommerce plugin does not make use of the signature at checkout. This setting can be edited and disabled by logging in to your ...
    • 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 ...
    • 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 ...
    • Why is WHMCS not processing transactions as complete?

      After updating your WHMCS application to the latest version, your transactions are no longer processed to completed status. This is due to the update process of WHMCS removing the callback file of PayFast. This file is payfast.php.   When you ...
    • How do I upgrade WHMCS?

      Please Note: For Recurring Billing, if you already have subscriptions setup on your WHMCS site those subscriptions will continue to generate invoices as before until cancelled. In order to migrate your clients to the new module, the next invoice they ...