Open riteshkhadka opened 10 years ago
I can't fix an issue that you've introduced by changing the code base.
Can you possibly open a PR with the proposed addition of NOTIFYURL
(and even better, a test case).
I added a notify url parameter before calling doDirectPayment() function and I simply passed the url as in your library class function formatDoDirectPaymentNvps() like in the array 'NOTIFYURL' => $payment['notifyurl'] . I enable IPN notification and specified notify back url but still paypal do not send anything to the notify url specified and keeps hitting the page where I made the initial payment.
I've not tested how PayPal handles IPN notifications, I'll change this to an enhancement issue.
You could open a pull request with your code changes? I can then test it myself.
I added NOTIFYURL parameter in your function formatDoDirectPaymentNvps() but paypal do not return to the mentioned url. This is in case of sandbox testing. Also how can I rely on session data, if computer get crashed after I made an request. Can we get parameters like sessionId passed from the website and notifyurl returns data in there.