Why am I getting “Merchant_key invalid”?

Why am I getting “Merchant_key invalid”?

  • Ensure that you're using test (sandbox) credentials when testing in sandbox mode and live credentials when disabling test/sandbox mode.
  • Double check that the merchant ID and key on your Payfast account matches the one set on your plugin’s settings.
  • Check for spaces before and after the merchant key. Copy-pasting the merchant key can sometimes accidentaly include spaces.

    • 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 ...
    • 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 ...