Robsta Posted December 9, 2005 Share Posted December 9, 2005 As I now have two stores which need to point to the same PayPal account, I've been reading up on IPN and setting it in the payment form rather than using the PayPal profile. Has anyone else got this working? According to the PayPal Order Management Guide, and the PayPal Developer Network, I need to add the following line to the form, which I assume is the 'modules/gateway/PayPal/transfer.inc.php' file. <input type='hidden' name='notify_url' value='http://www.domain.com/modules/gateway/PayPal/ipn.php' />"; This, apparently, overrides the profile details. However, it still returns to the wrong domain after the transaction. Even removing the other domain from the PayPal profile, returns to the wrong domain.... which leads me to think it's some sort of cacheing issue somewhere. I've added that line to the end of the form that is posted in the transfer.inc.php (under the 'upload' line). There was also mention of it requiring a secret shared key, but not sure. Do I need to add anything else to the notify_url line? Thanks for any feedback/suggestions. Quote Link to comment Share on other sites More sharing options...
Robsta Posted December 9, 2005 Author Share Posted December 9, 2005 Solved my own problem... LOL... adding this line to the PayPal Standard IPN file 'transfer.inc.php' will override the IPN and auto return settings in the PayPal profile settings. <input type='hidden' name='notify_url' value='http://www.domain.com/modules/gateway/PayPal/ipn.php' /> <input type='hidden' name='return' value='http://www.domain.com/confirmed.php' />"; Now I can have multiple carts to the same PayPal account. Nice. :P Quote Link to comment Share on other sites More sharing options...
Guest mhs5 Posted December 16, 2005 Share Posted December 16, 2005 Where did you add this in the script? Quote Link to comment Share on other sites More sharing options...
Robsta Posted December 16, 2005 Author Share Posted December 16, 2005 Where did you add this in the script? To the end of the form that's submitted in 'transfer.inc.php'. Look for the other '<input type= etc etc' lines. Quote Link to comment Share on other sites More sharing options...
Guest mhs5 Posted December 16, 2005 Share Posted December 16, 2005 Thanks. Great edit! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.