robmcvey / cakephp-paypal

CakePHP 2.0 plugin for PayPal Website Payment Pro
60 stars 44 forks source link

Notify Url not working #19

Open riteshkhadka opened 10 years ago

riteshkhadka commented 10 years ago

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.

robmcvey commented 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).

riteshkhadka commented 10 years ago

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.

robmcvey commented 10 years ago

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.