Why am I getting a merchant_id / merchant_key error?

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:
Merchant ID: 10000100
Merchant Key: 46f0cd694581a

For sandbox credentials with a passphrase:
Merchant ID: 10004002
Merchant Key: q1cd2rdny4a53
Passphrase: payfast

To generate your own unique credentials, you will need to create your own sandbox account. To do this, navigate to https://sandbox.payfast.co.za/ and register using your email address. On the sandbox dashboard, you will be given your unique sandbox Merchant ID and Key, and this will remain associated with the email used to log in. You will also be able to set a passphrase on your sandbox account.



    • Related Articles

    • 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 ...
    • How do I test WooCommerce in sandbox mode?

      To allow for testing recurring payments, as well as order updates, do the following: On WordPress, navigate to WooCommerce > Settings > Payments > PayFast. Enter the following sandbox credentials on the Configuration page: Merchant ID: 10004002 ...
    • How do I make test payments in sandbox mode?

      While setting up your ecommerce store, it's good practice to run some test payments to make sure everything works as expected. We recommend using our sandbox environment to test the payment engine without the need for live money being transferred. ...
    • What causes the error "The supplied variables are not according to specification"?

      This error is thrown if any of the POSTed values are incorrect, for instance, if the merchant_id or merchant_key is incorrect (possibly due to using a sandbox credentials on the live site), the following error will be thrown ‘The supplied variables ...
    • 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 ...