Why am I getting “Merchant_key invalid”?

Why am I getting “Merchant_key invalid”?

  • Ensure that live credentials are used for live transactions and test credentials are used for testing in the sandbox.
  • Double check that the one set on your PayFast account matches the one set on your plugin’s configuration page.
  • Check for spaces before and after the merchant key. Insert the merchant key again using copy-paste to ensure that it is correct.
    • Related Articles

    • 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 ...
    • What causes an invalid URL error?

      The PayFast system will pick up on ‘local’ or ‘localhost’ in the return, cancel and notify URLs and throw the invalid URL error. This is because it is not possible to test the ITN locally due to no server to server communication. The site needs to be ...
    • 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 ...
    • Why do I get an 'invalid url' error message when being redirected from Magento to PayFast?

      This is due to testing from a non internet accessible machine (e.g. a local development machine). Non internet accessible machine The module will only perform as expected if you are testing from an internet accessible machine ...