Two Wordpress Plugins with Two Different IPNs

mminten
Contributor
Contributor

I have a website that sells tickets and accepts donations. They use PayPal for both, and they both need an IPN pointing to a different URL. Of course PayPal only lets one IPN URL to be entered. I need to figure out how to send it to two URLs.


Basically I have a donation plugin, GiveWP  (link goes to their IPN page),  that needs it to go to: 

https://mysite.org/?give-listener=IPN

and a tickets plugin, Event Tickets (link goes to their IPN page), that just needs to go to:

https://mysite.org/

 

How can I get PayPal to send a notification to the correct URL?

 

I found everyone referencing this: https://codeseekah.com/2012/02/11/how-to-setup-multiple-ipn-receivers-in-paypal/ but it looks like this is setting specific conditions like custom pieces and product type. I am unsure what to put in these conditions or if htere is a simpler way to do this (notify_url). Please help!

Login to Me Too
5 REPLIES 5

mminten
Contributor
Contributor

Is there really no way to do this? I am just trying to accept two payments from two plugins on the same site.

Login to Me Too

MTS_Chiranjeevi
Moderator
Moderator

Hi @mminten,

 

Thank you for contacting PayPal Community.

We apologize for any inconvenience.

Please find my inline answers :

1) Can there be multiple websites that use one PayPal account, Which include multiple IPN listeners for different websites?
- Yes, you can have single PayPal account for multiple websites.

2) If yes, how ?
- You should use unique IPN listener codes on your individual websites and pass unique notify_url's in your website request calls to PayPal system.

For example :

Website 1 should send notify_url to PayPal system as "https://website_1.com/***"
Website 2 should send notify_url to PayPal system as "https://website_2.com/***"
Website 3 should send notify_url to PayPal system as "https://website_3.com/***"

Once the above notify_url's is passed, PayPal system will send the IPN response to the particular notify_url's accordingly.

 

Guide link - https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSetup/


Thank you so much for your patience and understanding.

Sincerely,
Chiranjeevi
PayPal, Inc.

 

 

 

 

 

 

Login to Me Too

mminten
Contributor
Contributor

So this points me in a correct direction but doesn't answer my question exactly.

I don't have multiple websites. I have one website.

 

In general when people make purchases the IPN needs to notify the main domain: https://mysite.org/

This is if they by tickets from various pages where we sell them.

 

Now, if they want to donate to us they would be on the page: https://mysite.org/donate (the same site) and the plugin that we use for donations needs to have the IPN notify this url: https://mysite.org/?give-listener=IPN

 

Also, when I look under Dynamically Setting the Notification URL it doesn't say how or where to do this. Is there a place in the PayPal backend that I add this? How do I tell it which button goes where? Do I have to add it to my code somehow?

 

I don't know where to find these requests: DoDirectPayment, DoExpressCheckoutPayment, or DoReferenceTransaction.

 

 

Login to Me Too

mminten
Contributor
Contributor

MTS_Chiranjeevi
Moderator
Moderator

Hi @mminten,

 

I apologize for any inconvenience.

 

I request to pass the unique "notify_url"s in your payment API request calls to PayPal system.

 

Yes, please use the below guide link to implement the same.

 

https://developer.paypal.com/docs/ipn/integration-guide/IPNSetup/#id091GJ202030

 

PayPal system will send the unique payment information to the notify_urls accordingly.

 

Example:

 

For tickets pass the notify_url in your request call to PayPal system.

For donations pass different notify_url in your request call to PayPal system.

 

Hope this information resolve your issue. Please give Kudos if this information is helpful.

 

Thank you for your understanding and patience.

 

Sincerely,

Chiranjeevi

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.