jeffuk Posted April 8, 2019 Share Posted April 8, 2019 We moved WHMCS to a new server but something has happened along the way. We are receiving autopayments but invoices are not being marked as paid. Nothing has changed other than the server move of course. What could be causing this? Has anyone experienced this? Thanks 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 8, 2019 Author Share Posted April 8, 2019 Disregard, I think I have found the problem. Apologies. 😁 0 Quote Link to comment Share on other sites More sharing options...
redit Posted April 8, 2019 Share Posted April 8, 2019 @jeffuk would you mind sharing - I think I may have one customer that is the same but the subscription was setup that long ago I'm not even sure if it is a problem with WHMCS or not. I'm sure that I've moved or upgraded the box WHMCS is on in the time they have been a customer. ~Scott 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 8, 2019 Author Share Posted April 8, 2019 (edited) In my case, it wasn't WHMCS, it was the Paypal IPN address, we changed subdomain name. Edited April 8, 2019 by jeffuk 0 Quote Link to comment Share on other sites More sharing options...
redit Posted April 8, 2019 Share Posted April 8, 2019 fair enough, checked that a few hundred times and everyone else works just not this really old PayPal Subscription. Guess I'll just keep marking it as paid by hand then. 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 16, 2019 Author Share Posted April 16, 2019 No, I spoke too soon. It's not working, it's working for new subscriptions not old and apparently, you can't change the old IPN url from Paypal and you would have to ask all old subscribers to re-subscribe which is a no-no. If I change the URL back then the new subscriptions will not work. It's a total mess will just have to manually mark invoices as paid for the time being. 0 Quote Link to comment Share on other sites More sharing options...
redit Posted April 16, 2019 Share Posted April 16, 2019 Oh I wonder if that could be it for me too then. So much time has passed I don't know if this customer setup on the old URL. I might see if I can do a HTML redirect to see if it resolves the problem. 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted April 16, 2019 Share Posted April 16, 2019 @jeffuk are you able to use the old sub domain to do redirects /rewrites? For example, if you can add the sub domain as an alias of the new sub domain and do a rewrite so that access to the IPN address goes through but any other access redirects to the new address. 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 16, 2019 Author Share Posted April 16, 2019 @steven99 I will give that a try. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 24, 2019 Author Share Posted April 24, 2019 @steven99 that worked. Gave it a few days and all seems to be working well. Thanks. @redit Give this a try, it may resolve your issue. 0 Quote Link to comment Share on other sites More sharing options...
redit Posted April 24, 2019 Share Posted April 24, 2019 @jeffuk How did you do this? I've added a htaccess rule and as it happened I had a PayPal payment come in which I did manually as it still didn't match up. I must admit, I forgot I'd added the rule but it still didn't work as I would have expected. The rule I added was simply as below: Redirect /modules/gateways/callback/paypal.php https://www.redit.co.uk/portal/ No in the server logs of both the web server (where the redirect is) and on the WHMCS box (now separate) I can see that the paypal.php file has been accessed by PayPal IPN. I don't clam to be any good at .htaccess rules but I would have thought this would have worked. 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 24, 2019 Author Share Posted April 24, 2019 (edited) I used exactly the same path, try Redirect 301 /modules/gateways/callback/paypal.php https://www.redit.co.uk/portal/modules/gateways/callback/paypal.php In my case, I had changed subdomain so I had to recreate the subdomain and add the redirection from there to the new subdomain. Edited April 24, 2019 by jeffuk 1 Quote Link to comment Share on other sites More sharing options...
redit Posted April 24, 2019 Share Posted April 24, 2019 Thanks I was going to try that next (if I remember) I'll let another payment go through as I have one due in a day or two then I'll give it ago and let you all know. 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted April 24, 2019 Author Share Posted April 24, 2019 1 minute ago, redit said: Thanks I was going to try that next (if I remember) I'll let another payment go through as I have one due in a day or two then I'll give it ago and let you all know. Don't forget to add 301 - Redirect 301 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Technical Analyst II WHMCS Lawrence Posted April 24, 2019 WHMCS Technical Analyst II Share Posted April 24, 2019 Just a heads up for anyone who sees this going forward: it isn't possible to change the URL in a PayPal subscription, however the redirect solution provided by @jeffuk should work 0 Quote Link to comment Share on other sites More sharing options...
jeffuk Posted June 17, 2019 Author Share Posted June 17, 2019 I am now seeing another problem, not sure how others have dealt with this. I have set up a new WHMCS installation on a different domain targetting a different country. The problem is that Paypal only accepts 1 IPN, so I can't add a new IPN for the new website, what would be the best way to tackle this ? 🙄 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.