• richstrauss

    (@richstrauss)


    Hello, I’m interested in purchasing the ‘WordPress PayPal IPN Forwarder’ extension.

    Can I use this with two separate WooCommerce installations, on two different URL’s – both offering subscriptions?

    How would I set this up? Would I install the plugins on one site only, or both? And how to configure? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor angelleye

    (@angelleye)

    What exactly is your goal?

    The IPN plugin alone allows you to set up a single listener on one site, and then you can have your PayPal set to send all IPNs to this one listener URL. Then if you need the IPN data sent to additional listeners provided by 3rd party services that’s where the Forwarder comes into play.

    If you can clarify exactly what you’re hoping for with this solution I can let you know whether it will work or not.

    Thread Starter richstrauss

    (@richstrauss)

    Hi, thanks for your reply.

    I have two websites, website1.com and website2.com – I’m using WooCommerce Subscriptions on both websites. I also have two different recurring subscription products, one product on website1.com, and one product on website2.com

    I have only one Paypal account.

    At the documentation for WooCommerce Subscriptions:

    https://docs.woocommerce.com/document/subscriptions/payment-gateways/#paypal-limitations

    PayPal Standard Limitation: “Only supporting selling subscriptions on one website per PayPal account”

    https://docs.woocommerce.com/document/subscriptions/store-manager-guide/#paypal-ipn-limitation

    IPN and Multiple Websites: “PayPal does not allow you to set multiple IPN URLs in a single PayPal account. It also does not allow applications, which you could consider WooCommerce Subscriptions as one, to set different IPN URLs for each website. As a result, PayPal can only be used to sell subscriptions on one website.”

    My question is, how can I set this up? I am assuming (hoping) that:

    1) I need to install ‘PayPal IPN for WordPress’ and ‘WordPress PayPal IPN Forwarder’ only on one site, ie website1.com
    2) I set IPN URL at Paypal as
    https://website1.com/?AngellEYE_Paypal_Ipn_For_Wordpress&action=ipn_handler
    3) In ‘WordPress PayPal IPN Forwarder’ I then send IPN data to
    https://website1.com/?wc-api=WC_Gateway_Paypal
    and
    https://website2.com/?wc-api=WC_Gateway_Paypal

    Is that correct, or will it not work? Or have I missed a step?

    Thanks!

    Plugin Contributor angelleye

    (@angelleye)

    I’m pretty sure this is what you’re going to need to do.

    1) Install IPN and Forwarder on website1.com.

    2) Configure PayPal account to send all IPNs to the URL provided by our plugin for website1.com.

    3) Add a forwarding rule to forward IPN data on website1.com to the IPN URL that would typically be used by the subscription system. This way the IPN plugin will run and your subscription IPN code will also run.

    4) Add a forwarding rule to forward IPN data to website2.com’s subscription IPN URL. Should be the same as website1 except for the domain, of course.

    The result here would be that IPN data would be sent from PayPal to our plugin’s listener, and it would then be forwarded out to both website1 and website2 subscription listeners.

    Things to consider:

    1) The subscription plugins may be using NotifyURL to override the IPN URL set in the PayPal account profile. If this is the case then the IPNs would be sent directly to that NotifyURL and our IPN listener would never get hit, so our forwarder would not trigger, of course. If this is the case, though, I don’t think you would need the forwarder anyway because each individual site would have its own custom URL being sent in NotifyURL.

    2) If the subscription transactions do fall to the PayPal profile setting, then what I outlined above would work, however, ALL transactions would be sent to both website1 and website2 regardless of which site they came from. If the IPN solutions provided by the subscriptions to not properly handle data that did not originate from it you could run into problems. Hopefully, their listener updates based on transaction ID, and without a matching transaction ID it would simply “do nothing” when an IPN hits a site URL that was from the opposite site.

    Does all of that make sense?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple WooCommerce websites with subscriptions’ is closed to new replies.