Support » Plugin: PayPal IPN for WordPress » Multiple WooCommerce websites with subscriptions

  • 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 4 replies - 1 through 4 (of 4 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.

    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?

    Most of us are aware of multi-site feature of WordPress 3.0 and above.

    Step 1: How to install WordPress in your local web server.

    1. Download WordPress 3.x
    Extract the downloaded files and keep it in C: à xampp à htdocs of your local server e.g (XAMPP)

    2. Create your wordpress database by typing http://127.0.0.1/phpmyadmin in the url.

    Step 2: How to add WooCommerce plugin to your WordPress.

    1. Log in to your WordPress with valid credentials (Username and Password generated during WordPress installation).

    2. Choose “Plugins” from the vertical toolbar and click on the “Add New” button.

    3. Search for WooCommerce in the search bar and click on the “Install Now” button.

    Step 3: How to enable multiple website creation in WooCommerce.

    1. Before you begin with the network installation process, deactivate all your active plugins.

    2. In order to enable the Network Setup menu, Multisite should be first defined in “wp-config.php”

    3. Go to wp-config.php in the hosted folder
    Continue Reading: How to create Multiple Websites in Woocommerce

    • This reply was modified 3 years, 7 months ago by anmol95.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple WooCommerce websites with subscriptions’ is closed to new replies.