Common causes of a failed integration / signature mismatch

Common causes of a failed integration / signature mismatch

The following will cause a signature mismatch or a payment to fail:

  1. This is most likely caused if you generated the MD5 hashed string with the variables in the wrong order.
  2. A required field is missing.
  3. A field is greater than the allowable character length.
  4. Any of the fields containing excess or invalid characters.
  5. The parameter string has been URLencoded incorrectly. The resultant URLencoding must be in uppercase (eg. http%3A%2F%2F) and not lower case like http%3a%2f%2f, and spaces encoded as ‘+’.
  6. The parameter string has not been trimmed of white spaces on the ends.
  7. The passphrase, if used, must be identical on your PayFast account as well as the site, and may consist only of letters, numbers and -_/.
    Should you wish to set up recurring billing, then you will need to have a passphrase set and recurring billing enabled on your account in order to prevent the signature mismatch error.
  8. You will need to ensure that the MD5 hash characters are in lower case.

    • Related Articles

    • How do I create a Custom Integration request?

      Developer Docs Our custom integration developer documentation can be found here: https://developers.payfast.co.za/docs#quickstart To make things easy for you, you can make use of the example request below. Simply replace the values of the fields with ...
    • 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 ...
    • Why do I get "Merchant Authorization Failed"?

      As per our Errors and Causes table, the signature is incorrect. Please note that the API signature is generated from the MD5 hash of the alphabetised submitted header and body variables, along with the passphrase. Ensure that you include the correct ...
    • What causes the ITN security check errors?

      Invalid signature This would be caused by the incorrect use of the passphrase, or the incorrect order of variables in the string that is MD5 hashed to generate the signature. Although this signature is generated in the same way as the signature on ...
    • How do I create a Tokenization request?

      Developer Docs Our tokenization developer documentation can be found here: https://developers.payfast.co.za/docs#tokenization To make things easy for you, you can make use of the example request below. Simply replace the values of the fields with ...