PDA

View Full Version : Redirect old Paypal IPN to new Paypal IPN for Reoccuring Subscriptions


Hummie
05-23-2010, 12:40 PM
Please help!
When I upgraded my forum, I changed the url from an uppercase to a lowercase (as is recommended). Now messages sent from Paypal to the forum notifying of payments are not working.
It was suggestion that I do an HT Access file to redirect from
http://www.mywebsite.com/Forum/payme...?method=paypal
to
http://www.mywebsite.com/forum/payme...?method=paypal


***
I tried doing a simple 301 redirect and it did not work.

Is there ANYONE that can help me? vBulliten did send me to an instruction page, but said that this is not supported in their troubleshooting. I'm SO frustrated.

your24hourstore
05-23-2010, 01:18 PM
you should be able to fix that link from the paypal end I would think

having a custom htaccess file made for you isn't going to be easy to get for free

better go to paypal and try and slip the new lowercase link into your account. not sure if its your redirection link getting back to the site after payment or what?

but if it don't work you probably can pay someone in paid help.

good luck.

Hummie
05-23-2010, 01:39 PM
I have already contacted Paypal.

Maybe I am not making myself clear enough on the problem.

When someone creates a reoccurring subscription, the IPN url utilized at that time stays in the Paypal subscription of that particular subscribers subscription in Paypal and cannot be changed.

All new subscriptions are working fine. I've been told that I have to ask each an every person to unsubscribe and resubscribe to fix the problem.

It was suggested that if I could just get the old url IPN to redirect to the new IPN url, then all messages from Paypal to the forum would work.

I am surprised this has never come up before.

Hasn't anyone ever had an old forum that they upgraded to a new url and needed the old reoccuring subscriptions to transfer? Surely I am not the first.

I would be willing to pay a reasonable fee for help on this, but I just cannot imagination that others are not having the same problem and that something like this would be that hard to do, but then again, I am not that knowledgeable or I wouldn't be asking for help.

Sajeth
05-23-2010, 02:24 PM
I could do this.
PM me with your MSN account, if you have one :)

Hummie
05-23-2010, 04:18 PM
I have PM'd you, but you only have three posts here. This makes me leary.

Hummie
05-24-2010, 11:56 PM
This is my last BIG problem since upgrading to VB4. I would like to get beyond this stress SO badly!

Here's what I wrote on my htaccess file that did not work that I put in my root folder.

redirect 301 /Forum/payment_gateway.php?method=paypal http://www.sitename.com/forum/payment_gateway.php?method=paypal


ANY IDEAS...PLEASE!

your24hourstore
05-25-2010, 12:33 AM
hunm yep i see your problem now, it could be routed with htaccess for sure , but i cant make you one, i did kind of play around with it a bit and a fix might be possible, useing html

since your forums are now called Forums, if you make a new folder in root called forums, and stick a simple html redirect in that folder directing it back to Forums/index or where ever it should send any thing that comes in in to where ever you have it routed to, probibly wouldnt hurt anything untill you find someone to write you a file that will do it, or in your case http://www.mywebsite.com/forum/payme...?method=paypal
now you may rout it all to a thread or anouther page with an annoncment telling the issue with links to where ever
this is only a stop gap in case some one clicks on it tonight you see , but i would try that

of course i think not sure that all links in that format would wind up there
and of course a htaccess file could be put in there also. :D

sorry i hate htaccess

Hummie
05-25-2010, 12:48 AM
I was doing some more reading and I think since the redirect involves .php that it may be more complicated codeing. I'm patiently waiting for someone to come along to help me. I did post in the offer to pay section. I don't want to pay too much money, but hopefully a reasonable amount for someone to just create the htaccess file for me and give me instructions on where to upload it. I'm not sure what a reasonable amount is. At this point, I'd probably overpay!

your24hourstore
05-25-2010, 12:51 AM
I was doing some more reading and I think since the redirect involves .php that it may be more complicated codeing. I'm patiently waiting for someone to come along to help me. I did post in the offer to pay section. I don't want to pay too much money, but hopefully a reasonable amount for someone to just create the htaccess file for me and give me instructions on where to upload it. I'm not sure what a reasonable amount is. At this point, I'd probably overpay!

so make the redirect PHP its no biggies <?php
//this will NOT work, the browser received the HTML tag before the script

header( 'Location: http://www.mywebsite.com/forum/payme...?method=paypal
' ) ;
?>
not going to hurt anything i don't think make a new page name it index.php and stick it in that new folder with this code. you may need the real link untruncated though

im kind of interested to see if it would work!! :>

Hummie
05-25-2010, 01:22 AM
since your forums are now called Forums, if you make a new folder in root called forums, and stick a simple html redirect in that folder directing it back to Forums/index or where ever it should send any thing that comes in in to where ever you have it routed to, probibly wouldnt hurt anything untill you find someone to write you a file that will do it, or in your case http://www.mywebsite.com/forum/payme...?method=paypal

Okay, I will try your suggestion, it won't hurt and I appreciate any ideas. You never know if it will work!

However, in what I quoted of you above, you got it backwards.

My forum are now called forums.....lowercase.

So, is your php coding correct? I am making a folder called "Forums" and putting in your coding. It will redirect to the "forums" folder the way you have it written if I do that?

your24hourstore
05-25-2010, 01:35 AM
yes then uppercase . so it matches the Forums in that link anything after Forums/ shouldn't matter anyway

but the link you posted wont work because its been truncated or shortened with the pertinent info left out so insert a good link to where ever yo u would like it to go no ...indexphp

other than that it should work to redirect anything coming into that folder to the link you install in that php script.

but when makeing the index file put only that code in it and name it index,php upload it to the new forums directory you make...make sure not to rename your working forums directory though ... you will figure it out

Hummie
05-25-2010, 01:46 AM
Yes, I understand about the truncating and I did correct that.

I have it in place and then told Paypal to resend an IPN that had failed. We just have to wait for it to send now to see if it goes through or not. I think the help guy said they try 4 times a day? Or was it 4 times an hour?

--------------- Added 1274755658 at 1274755658 ---------------

Oh, just checked. It's back and it failed. Sigh. I was SO hopeful!

your24hourstore
05-25-2010, 01:51 AM
OK cant believe you cant find one coder in here to make you a new htaccess file .

have you google the htaccess how too they are pretty intense :>

post your htaccess you have so far

--------------- Added 1274756243 at 1274756243 ---------------


Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
RewriteEngine On

# this is the rewrite rule that I added
# it should redirect to www.mydomain.com if http_post variable does not
start with www
# but I have no idea why it does not work
RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://www.mydomain.com/ ^/(.*) [L,R=301]

# uncomment the following line, if you are having trouble
# getting no_script_name to work
#RewriteBase /

# we skip all files with .something
#RewriteCond %{REQUEST_URI} \..+$
#RewriteCond %{REQUEST_URI} !\.html$
#RewriteRule .* - [L]

# we check if the .html version is here (caching)
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

# no, so we redirect to our front web controller
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

heres one to start with

--------------- Added 1274756356 at 1274756356 ---------------

thats a rewrite htaccess to redirect someone was working on it i think its ok if changed just dont uncomment anything and change the domains

Hummie
05-25-2010, 02:00 AM
Someone PM'd me to help in response to my "pay" request and said the htaccess won't work. They want admin access to evaluate the problem. They seem reputable, but I don't see why they would need admin access and am waiting for them to explain better. It seems to me I could pay someone to write a code and give it to me to upload. I don't see how it can be fixed through admin when everything in admin is going to the lowercase "f"....sigh

I'm ready to unsub everyone and send out mass e-mail and tell them to resub and take my hits for those that won't resub (lurkers). I've been dealing with this for weeks to no avail now. I'm stressed.

your24hourstore
05-25-2010, 02:04 AM
who is it ?
wonder if it would be in the general setup
just renamed the Forums

Hummie
05-25-2010, 02:07 AM
vB Style

I've had it for one night. I've been working on this stuff now for 4 hours. At least I got my other frustrating trouble solved. One step at a time.

This one is just major and important.

Thanks for helping...I need a fresh mind.

your24hourstore
05-25-2010, 02:10 AM
delete that diectory we made and then try this out, make sure its the right firectory or just rename it

try changeing it here to Forums

Hummie
05-25-2010, 02:49 PM
I think that would mess up my whole forum. vB Style has given me another idea to try. I'll work on it tonight and let you know how it goes.

--------------- Added 1274837171 at 1274837171 ---------------

vB Style did it! I AM SO excited and jumping with joy and so appreciative from the bottom of my heart.

He wrote me a payment_gateway.php file. Of course, I won't share the code, but want to mention this here in case someone else is searching for an answer to this same problem...they can contact vB Style for the answer. It wouldn't be right for me to put the answer here since I paid for his services.

sub_ubi
06-26-2012, 12:10 AM
I have the same issue as Hummie, but with a new domain.

I assume I put the modified payment_gateway.php into the old domain, and have it point to the new one. I'll try digging through the file looking for obvious places to edit - but in the meantime, I would love some help, paid or otherwise.

sub_ubi
07-26-2012, 08:54 AM
Anyone interested in helping? $$ to anyone who gets this going - I'm getting tired of manually doing this every day

sub_ubi
08-02-2012, 03:07 AM
ForumsMods fixed this for me:

https://vborg.vbsupport.ru/member.php?u=215438

It was a simple fix, no changes to any vb code actually (not even payment_gateway) but well worth the money. If you need this, contact him.