woocommerce / woocommerce-subscriptions-importer-exporter

Import your subscribers to WooCommerce from a CSV. Or export your subscription data from WooCommerce to CSV.
GNU General Public License v3.0
148 stars 56 forks source link

PayPal IPN Redirect Not Working #93

Closed JasonMarsteller closed 8 years ago

JasonMarsteller commented 8 years ago

Ok, so we wrote a redirect on our old nopcommerce IPN, and all the server information says that the information is being passed to WooCommerce.

But, nothing is changing on the Woo side. When someone has a recurring payment go through on PayPal, it says it charges them but is not updating the subscription on the Woo site.

Any help?

javorszky commented 8 years ago

Hi @JasonMarsteller,

Do you have paypal logging enabled? You should be able to go to WooCommerce -> System Status -> Logs and look at what the latest paypal logs say.

Can you also double check whether the redirection actually works? If you go to the old url, you should end up at the new one with an error message saying "PayPal IPN Request Failure"

JasonMarsteller commented 8 years ago

When I click on the old IPN (http://swimshop.swimmingworldmagazine.com/Plugins/PaymentPayPalDirect/IPNHandler), I do get the PayPal IPN Request Failure.

Under System Status, I have the following that says PayPal; Log file: paypal-9c7cc2fe70e91a2061a224f544376815.log (December 20, 2015 11:32 am)

When I click View, it is blank

JasonMarsteller commented 8 years ago

Also, since we are installed on a subdirectory of /news - which Woo IPN is correct?

http://www.swimmingworldmagazine.com/news/?wc-api=WC_Gateway_Paypal

or:

http://www.swimmingworldmagazine.com/news/shop/?wc-api=WC_Gateway_Paypal

Both go to that error code of Request Failure.

javorszky commented 8 years ago

Hi @JasonMarsteller,

It seems like the old IPN is returning a 500 error, and not a 301. It doesn't seem to be doing its job.

I'm going to close this issue as it's not a problem with the importer. You'll need to talk to whoever set up the redirection, or your in house developers.

JasonMarsteller commented 8 years ago

Ok, thanks.

JasonMarsteller commented 8 years ago

Is this as simple as a 301 redirect then? Just curious.

javorszky commented 8 years ago

It should be. Basically this should happen:

http://swimshop.swimmingworldmagazine.com/Plugins/PaymentPayPalDirect/IPNHandler -> (301) -> http://www.swimmingworldmagazine.com/news/?wc-api=WC_Gateway_Paypal for all requests.

JasonMarsteller commented 8 years ago

Thanks.

On Sun, Dec 20, 2015 at 11:07 AM, Gabor Javorszky notifications@github.com wrote:

It should be. Basically this should happen:

http://swimshop.swimmingworldmagazine.com/Plugins/PaymentPayPalDirect/IPNHandler -> (301) -> http://www.swimmingworldmagazine.com/news/?wc-api=WC_Gateway_Paypal for all requests.

— Reply to this email directly or view it on GitHub https://github.com/Prospress/woocommerce-subscriptions-importer/issues/93#issuecomment-166141763 .

JasonMarsteller commented 8 years ago

It would be nice if someone could write an ultimate document on exactly how to do this. It would really help someone like Prospress who is in the business of migrating people to Woo.

On Sun, Dec 20, 2015 at 11:18 AM, Jason Marsteller jmarsteller@gmail.com wrote:

Thanks.

On Sun, Dec 20, 2015 at 11:07 AM, Gabor Javorszky < notifications@github.com> wrote:

It should be. Basically this should happen:

http://swimshop.swimmingworldmagazine.com/Plugins/PaymentPayPalDirect/IPNHandler -> (301) -> http://www.swimmingworldmagazine.com/news/?wc-api=WC_Gateway_Paypal for all requests.

— Reply to this email directly or view it on GitHub https://github.com/Prospress/woocommerce-subscriptions-importer/issues/93#issuecomment-166141763 .