Why am I not receiving the ITN callback?

Why am I not receiving the ITN callback?

Below are some of the reasons why you are either not receiving your ITN callback or it appears as if you're not receiving the ITN callback:

You're ITN page is unreachable

The URL specified by your notify_url variable could be unreachable.

To test this, open a browser and navigate to the URL yourself. Ensure that the page is in fact reachable and returns a valid HTML response (200 OK etc.).

If your browser times out or gets a 500 error response, then the page is unreachable and indicates that there could be a problem with your web server configuration. Contact your system administrator to resolve this.

You're ITN page performs a 302 redirect

If your notify page tries to redirect to another page immediately, it might not look like you are receiving the ITN callback as, for security reasons, ITN does not follow redirects.

Ensure that all the processing which needs to occur, occurs at the notify_url location itself without requiring a redirect to another location.

Typical instances where this occurs without your knowledge is where your notify_url is actually protected by a login mechanism and when the PayFast server tries to POST to it, the system redirects to a login page asking for a username and password.
Test this by clearing all session cookies (or using a different browser to normal) and navigating to the page yourself. If it redirects you to another page, that's your problem.

You are making use of an incorrect port

PayFast makes use of ports 80, 8080, 8081 and 443 only

    • Related Articles

    • 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 resolve a WooCommerce / Joomla ITN issue?

      When attempting a transaction, and the ITNs seem not to be going through to your application, go to https://developers.payfast.co.za/docs#ports-ips and unblock / whitelist the IPs and ports listed. Should the issue persist, please check your cPGuard ...
    • Do I need to set the ITN url on my account?

      No. When using the one of our payment modules, the ITN url is set automatically and you do not need to set it on your account manually.
    • Why am I not receiving a confirmation email at all?

      Mostly likely, this has not yet been set. There are two ways to do this. You can either send this in the form posted to PayFast from the checkout page, as per our developer documentation, or the merchant can activate this on their Payfast dashboard. ...
    • Where can I view my token for testing a subscription in the sandbox?

      You will not be able to view it in the sandbox. You must make use of the ITN callback in order to retrieve the token among the return variables after a successful payment.