SMFHacks.com

SMF Store => Support => Topic started by: diegolyanky on November 26, 2018, 10:22:38 am

Title: Rewrite rule for IPN
Post by: diegolyanky on November 26, 2018, 10:22:38 am
Hi:


I have upgraded from SMF 1.1.x to 2.0.x and updated the SMFSTORE to the latest version.
Behold, the subscriptions created in version 1.x of SMFStore point to storeipn.php and the new version works on storeipn2.php

Now, I have been able to modify the URL of the new IPN in PayPal, but this will only work with the "new subscriptions" and will not work with the subscriptions already created in the previous version.

I need to create a rule in my apache (I have a dedicated server, it is not rented hosting) so I think I would need to redirect from my .htaccess so that all requests sent to storeipn.php are redirected to storeipn2.php

I have read about using the method $ POST (307) in the rule, but I do not know how it would be.

Could you help me with this problem? ... Since I can not modify the notifications of the subscriptions already created.

Of course, thank you!
Title: Re: Rewrite rule for IPN
Post by: SMFHacks on November 26, 2018, 10:56:05 am
Easy thing you can do copy storeipn2.php and rename it storeipn.php
and that will work fine.
Title: Re: Rewrite rule for IPN
Post by: diegolyanky on November 26, 2018, 10:58:55 am
Easy thing you can do copy storeipn2.php and rename it storeipn.php
and that will work fine.

Awesome !!!

You rule !!

Thanks Admin !!
Title: Re: Rewrite rule for IPN
Post by: Engram on December 18, 2018, 09:39:41 am
A simple rename like that doesn't screw up anything else in the long run, right?
Title: Re: Rewrite rule for IPN
Post by: diegolyanky on December 18, 2018, 10:01:49 am
A simple rename like that doesn't screw up anything else in the long run, right?


No, my friend. Do it, it has worked for me and in fact, it works perfectly well. ;)