Reputation: 35
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:
My notify_url is public accessible
It's also responding 200 OK
But payfast is not redirecting to notify_url only redirecting to 'return_url'
Upvotes: 0
Views: 1700
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
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
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