Jump to content

PayPal IPN notify_url modification


Robsta

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...