JAMES
JAMES

Reputation: 35

payfast not redirecting to notify_url

I am working with payfast integration in testing env. I have defined all required criteria like.

Problem: I have defined notify_url but payfast is not calling my notify_url. It's just calling my return url.

Notify Url:

But payfast is not redirecting to notify_url only redirecting to 'return_url'

Upvotes: 0

Views: 1700

Answers (3)

Ammaar Isaacs
Ammaar Isaacs

Reputation: 21

If you are using a tunneling service for making the notify URL publicly accessible, make sure that there isn't any redirects from the proxy provided by the tunneling service. Payfast will halt the notify request if it is redirected.

Upvotes: 0

Stefan Pretorius
Stefan Pretorius

Reputation: 1

If you are testing locally you will need to have a publicly accessible URL (notify_url) in order to receive the notifications, consider using tools such as NGROK or Expose to expose your local development server to the Internet.

Upvotes: 0

Shepherd_ZA
Shepherd_ZA

Reputation: 21

When a successful payment is made, PayFast will send an ITN(Payment Confirmation) to your notify_url.

They will send the ITN to your notify_url before a user gets redirected to your return_url.

When the ITN gets sent to your notify_url, you will have to save the return variables in your database.

By doing this, when a user gets redirected to your return_url, you can source the information out of your database and update your system accordingly.

You will also have to ensure you're using the correct port as per their documentation.

Upvotes: 1

Related Questions