vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   SSL subscription issue (https://vborg.vbsupport.ru/showthread.php?t=316433)

angemon 01-05-2015 01:49 PM

SSL subscription issue
 
Dear support,
I've been subscription on my forum http://removed and everything was fine , but now I've moved into SSL https://removed the subscription is no more working , even when someone pay using paypal and receive the money , his usergroup doesn't change ( it should show a subscriber badge and change his name color and allow the member to show private sections) so I guess it's SSL issue , or may be because we're using cloudflare now , it may cause the issue too.
I will be waiting your suggestion , thanks

RichieBoy67 01-05-2015 02:05 PM

I really cannot see how either cloud flare or ssl would impact usergroup change if the subscriptions are going through.

Did you try to change back to using http:// just to see if it is indeed the issue?

kh99 01-05-2015 02:46 PM

Don't paypal payments depend on paypal connecting back to payment_gateway.php? It could be that it can't make an https connection for some reason. Going back to http like RichieBoy67 suggested sounds like a good test.

ozzy47 01-05-2015 02:51 PM

Check your settings at PayPal and make sure your return url is not set to http.

RichieBoy67 01-05-2015 02:54 PM

Yeah he said the payments are going through but I guess it makes sense if the payment goes through then the site is not getting the response. That could cause the promo not to work.

i agree to check your Paypal settings for the site url.

angemon 01-05-2015 03:24 PM

Quote:

Originally Posted by ozzy47 (Post 2530578)
Check your settings at PayPal and make sure your return url is not set to http.

Where can I set that ? Since I haven't set anything the first time on my PayPal , i've simply added my paypal email on vbulletin subscription panel.

RichieBoy67 01-05-2015 03:27 PM

Quote:

Originally Posted by angemon (Post 2530584)
Where can I set that ? Since I haven't set anything the first time on my PayPal , i've simply added my paypal email on vbulletin subscription panel.

What happens when you go into subscription manager and click test communication?

angemon 01-05-2015 04:04 PM

Quote:

Originally Posted by RichieBoy67 (Post 2530585)
What happens when you go into subscription manager and click test communication?

It passes
https://vborg.vbsupport.ru/external/2015/01/41.png

--------------- Added [DATE]1420483489[/DATE] at [TIME]1420483489[/TIME] ---------------

Do I have to change something on cookies and HTTP header options?

--------------- Added [DATE]1420483714[/DATE] at [TIME]1420483714[/TIME] ---------------

also I've this enabled (even I think it doesn't have anything to do with the issue)
https://vborg.vbsupport.ru/external/2015/01/42.png

HM666 01-05-2015 05:52 PM

Quote:

Originally Posted by angemon (Post 2530584)
Where can I set that ? Since I haven't set anything the first time on my PayPal , i've simply added my paypal email on vbulletin subscription panel.

What he is talking about is you will need to login to your PayPal account and make sure that your URL is not set to http but https instead. Once you make that change it should be fine.

angemon 01-05-2015 06:13 PM

Quote:

Originally Posted by HM666 (Post 2530595)
What he is talking about is you will need to login to your PayPal account and make sure that your URL is not set to http but https instead. Once you make that change it should be fine.

what I'm asking too is where to find that in my paypal account , since I haven't add any website in my paypal account , so where can I find links so I can change it from http to https

HM666 01-05-2015 06:16 PM

Quote:

Originally Posted by angemon (Post 2530599)
what I'm asking too is where to find that in my paypal account , since I haven't add any website in my paypal account , so where can I find links so I can change it from http to https

Do you have the old PayPal layout or the new one?

kh99 01-05-2015 06:21 PM

The Payment API tests in the admincp only check to see if your server can connect to paypal, and not the other way around. I don't know the details of how the payment system works so I don't know if it always connects the other way (paypal to your server) or what happens if it can't.

It looks to me like the url that paypal should connect to is sent with the initial communication, so that's probably why you never had to set that. The code uses the bburl setting which you've no doubt changed to https already (It's "Forum URL" in the settings"), so I doubt that's it. But there could be other issues with SSL. This is all speculation and I know it doesn't help much.

HM666 01-05-2015 06:24 PM

Sometimes in PayPal you HAVE to set that URL. Or at least it makes it where you do not have any problems in the future. PayPal is sometimes tricky and will do really strange things for no reason.

angemon 01-05-2015 06:26 PM

Quote:

Originally Posted by HM666 (Post 2530600)
Do you have the old PayPal layout or the new one?

I had this look 2 years ago , still the same
Image Removed

--------------- Added [DATE]1420489769[/DATE] at [TIME]1420489769[/TIME] ---------------

Quote:

Originally Posted by HM666 (Post 2530606)
Sometimes in PayPal you HAVE to set that URL. Or at least it makes it where you do not have any problems in the future. PayPal is sometimes tricky and will do really strange things for no reason.

is it this one
https://vborg.vbsupport.ru/external/2015/01/40.png

HM666 01-05-2015 06:36 PM

Login go to Merchant Services > Process Orders > Instant Payment Notification click the link below that heading. Mine is labeled "Learn More" Then you will set your IPN to be your https url and save there. I "think" that is the only place you change it, its been quite awhile since I've played in there.

EDIT: just saw your edited post yeah you can try to change it there as well. But that is the URL that PayPal will return you to after a payment has been made. So in effect what that does is if you have a custom page that says thanks for the donation/payment etc then you use that page as the return URL. It really should have no bearing on your usergroups having problems.

angemon 01-05-2015 07:47 PM

Quote:

Originally Posted by HM666 (Post 2530611)
Login go to Merchant Services > Process Orders > Instant Payment Notification click the link below that heading. Mine is labeled "Learn More" Then you will set your IPN to be your https url and save there. I "think" that is the only place you change it, its been quite awhile since I've played in there.

EDIT: just saw your edited post yeah you can try to change it there as well. But that is the URL that PayPal will return you to after a payment has been made. So in effect what that does is if you have a custom page that says thanks for the donation/payment etc then you use that page as the return URL. It really should have no bearing on your usergroups having problems.

Is it this one , I've just put my website link (it wasn't there) , are you sure that will solve the issue!?
Image Removed

--------------- Added [DATE]1420497310[/DATE] at [TIME]1420497310[/TIME] ---------------

EDIT: after testing , still not working , usergroup doesn't change , even that I've received the money

--------------- Added [DATE]1420497420[/DATE] at [TIME]1420497420[/TIME] ---------------

Quote:

Originally Posted by HM666 (Post 2530611)
Login go to Merchant Services > Process Orders > Instant Payment Notification click the link below that heading. Mine is labeled "Learn More" Then you will set your IPN to be your https url and save there. I "think" that is the only place you change it, its been quite awhile since I've played in there.

EDIT: just saw your edited post yeah you can try to change it there as well. But that is the URL that PayPal will return you to after a payment has been made. So in effect what that does is if you have a custom page that says thanks for the donation/payment etc then you use that page as the return URL. It really should have no bearing on your usergroups having problems.

EDIT: after testing , still not working , usergroup doesn't change , even that I've received the money

kh99 01-05-2015 10:26 PM

Wouldn't the url be https://removed.com/payment_gateway.php?method=paypal ?

ETA: actually, from the developers docs:
Quote:

Note: The IPN message will always be sent to your notification URL unless receiving IPNs have been disabled. Even though you have not enabled receiving IPN messages in your Profile or you have reset your preference by turning off IPN messages, PayPal still sends IPN messages to the notification URL you specify for a specific payment. IPN messages not sent because you disabled the preference in your Profile will appear in the IPN history when you enable receiving IPNs. After they appear in the history, you can choose whether or not to resend them.
So, since the vb code includes the URL for each specific payment, I would think you'd want to leave that setting at "Do Not Receive IPN Messages". Are you able to look in the IPN history they mention?

I don't know anything about cloudflare, but is it possible to temporarily turn it off to see if that makes any difference?

ozzy47 01-05-2015 10:57 PM

Check out, your server's access logs and see if it is actually trying to access your site, should look something like this, 123.0.21.3 - - [28/Aug/2012:21:29:57 +0100] "POST /payment_gateway.php HTTP/1.0" 200 - "-" "-", and then check your sites error log and see if you see something like this, [Tue Aug 28 21:29:57 2012] [error] [client 123.0.21.3] client denied by server configuration:

angemon 01-05-2015 11:02 PM

Quote:

Originally Posted by kh99 (Post 2530666)
Wouldn't the url be https://removed.com/payment_gateway.php?method=paypal ?

ETA: actually, from the developers docs:


So, since the vb code includes the URL for each specific payment, I would think you'd want to leave that setting at "Do Not Receive IPN Messages". Are you able to look in the IPN history they mention?

I don't know anything about cloudflare, but is it possible to temporarily turn it off to see if that makes any difference?

tried your suggestion , and still not working .
also even after pausing cloudflare it didn't work , so I really don't know :( .

--------------- Added [DATE]1420509588[/DATE] at [TIME]1420509588[/TIME] ---------------

Quote:

Originally Posted by ozzy47 (Post 2530668)
Check out, your server's access logs and see if it is actually trying to access your site, should look something like this, 123.0.21.3 - - [28/Aug/2012:21:29:57 +0100] "POST /payment_gateway.php HTTP/1.0" 200 - "-" "-", and then check your sites error log and see if you see something like this, [Tue Aug 28 21:29:57 2012] [error] [client 123.0.21.3] client denied by server configuration:

I haven't done yet what you told me , but I've just seen something weird on the transaction logs
https://vborg.vbsupport.ru/external/2015/01/38.png

https://vborg.vbsupport.ru/external/2015/01/39.png

https://vborg.vbsupport.ru/external/2015/01/35.png

ozzy47 01-06-2015 12:09 AM

In setting up paid subscriptions for the first time there is a lot that can go wrong. A common problem is that payments are received but vBulletin doesn't register the payment and doesn't change the user's group memberships appropriately. Here are several things you can check based on my experience troubleshooting these problems.

1) Make sure your paypal emails are correct and that they are entered exactly the same as in your paypal account. Note that these emails are known to be case sensitive:

Admin CP -> Paid Subscriptions -> Payment API Manager -> Edit

2) Make sure the test communication is working:

Admin CP -> Paid Subscriptions -> Test Communication

3) Make sure you heed the warnings on this page:

http://www.vbulletin.com/docs/html/m...scriptions_add

Quote:

Warning:
Do not change the cost of a Subscription if a recurring payment is currently in use, these payments will fail to update.

Warning:
Do not set a Paypal subscription to greater than 100 days. Use the months or years options to set subscriptions greater than 100 days.
Also note that the duration of a paid subscription cannot exceed a time that would put the expiration date past the year 2037 as that is the highest complete year that can be represented by a 32 bit integer timestamp. PHP is currently limited to 32 bit integers.

4) Make sure your forum directory is not behind a htaccess login because that will prevent paypal from accessing the callback URL.

5) Make sure your forum URL is correct as that is used to build the callback URL:

Admin CP -> vBulletin Options -> Site Name / URL / Contact Details -> Forum URL

If this is your forum:

http://www.vbulletin.com/forum/

...then the forum URL should be set to:

http://www.vbulletin.com/forum (no ending slash)

6) And if you are specifying the IPN URL in your paypal account then make sure that is correct. If this is your forum:

http://www.vbulletin.com/forum/

Then the IPN URL should be:

http://www.vbulletin.com/forum/payment_gateway.php?method=paypal

7) Login to paypal.com and make sure you are actually receiving the money from the purchases. Make sure the transactions are marked as "completed." Also, make sure your paypal account is not configured to require your approval for incoming payments. Otherwise the payments won't complete until you approve them.

__________

If it still doesn't work then it might be due to some customizations on your forum. You can determine this by temporarily removing your customizations to see if the problems goes away. Try to reproduce it on a default style:

Admin CP -> Styles & Templates -> Style Manager -> [Add New Style]

Create a new style with no parent. Then click that style's name in the Style Manager to view your forum with that style.

If you still have the problem then try disabling your plugins:

Admin CP -> vBulletin Options -> Plugin/Hook System

Also run a file check to look for customized files:

Admin CP -> Maintenance -> Diagnostics -> Suspect File Versions

ozzy47 01-06-2015 12:48 AM

Quote:

Originally Posted by kh99 (Post 2530666)

That would be a no. All you need is the site URL. If you look in the template, the gateway is in a hidden field.

Code:

<input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/payment_gateway.php?method=paypal" />

kh99 01-06-2015 07:45 AM

Quote:

Originally Posted by ozzy47 (Post 2530692)
That would be a no. All you need is the site URL. If you look in the template, the gateway is in a hidden field.

Code:

<input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/payment_gateway.php?method=paypal" />

So you're saying that you know that Paypal will take the start of a URL that you enter at the site, then take the /payment_gateway.php?method=paypal part off what you specify in the request (it starts with {vb:raw vboptions.bburl}, which is your forum url, so that would have to be stripped off)? OK, I must have missed that when I read the docs. What I did read is that if you specify a notify_url, it will be called regardless of the settings in your paypal profile, but I might have misunderstood.

kh99 01-06-2015 08:28 AM

Here's some information on setting up paypal: http://www.vbulletin.com/forum/forum...k-these-things

ozzy47 01-06-2015 09:46 AM

Quote:

Originally Posted by kh99 (Post 2530715)
So you're saying that you know that Paypal will take the start of a URL that you enter at the site, then take the /payment_gateway.php?method=paypal part off what you specify in the request (it starts with {vb:raw vboptions.bburl}, which is your forum url, so that would have to be stripped off)? OK, I must have missed that when I read the docs. What I did read is that if you specify a notify_url, it will be called regardless of the settings in your paypal profile, but I might have misunderstood.

No. Look in the template, subscription_payment_paypal. All that info is passed along to PayPal when you submit to them.

Sometimes though you need to enter your site URL to receive the Instant Payment Notification. Why, I don't know. Some sites have to set it up, some sites don't.

I went through all this crap when setting up vBDonate when I was at DBTech. So line I had said, if you are not getting the expected results when someone pays, you start there. Then you check out, your server's access logs and see if it is actually trying to access your site, should look something like this, 123.0.21.3 - - [28/Aug/2012:21:29:57 +0100] "POST /payment_gateway.php HTTP/1.0" 200 - "-" "-", and then check your sites error log and see if you see something like this, [Tue Aug 28 21:29:57 2012] [error] [client 123.0.21.3] client denied by server configuration:

While doing vBDonate, to make it even easier to track issues, the SandBox ability was added to the mod, in order to put the system into test mode, so you could do full transactions in a testing environment, to trace down the potential issues.

ozzy47 01-06-2015 09:47 AM

Quote:

Originally Posted by kh99 (Post 2530716)
Here's some information on setting up paypal: http://www.vbulletin.com/forum/forum...k-these-things

Yes I mentioned all of it in this post https://vborg.vbsupport.ru/showpost....9&postcount=20

kh99 01-06-2015 12:34 PM

Quote:

Originally Posted by ozzy47 (Post 2530719)
Yes I mentioned all of it in this post https://vborg.vbsupport.ru/showpost....9&postcount=20

Oh yeah, that's the same post word for word. Sorry I wasted everyone's time by posting a link to it.

ozzy47 01-06-2015 12:36 PM

It's cool Kevin, the more eyes on everything, the better. :)

thetechgenius 01-06-2015 03:53 PM

Are you using CloudFlare Free SSL, or do you actually have a Paid SSL Certificate? I pay yearly for a Comodo Wildcard SSL certificate, and my vB forum works perfectly fine with cloudflare and SSL.

HM666 01-06-2015 04:42 PM

Also to elaborate on Ozzy's post. When putting in your paypal email address use the "PRIMARY" payment email address on your account. If you have more than one email account on your paypal and you put an address that is not the primary address you do sometimes get problems in vBulletin.

angemon 01-06-2015 05:44 PM

Quote:

Originally Posted by ozzy47 (Post 2530692)
That would be a no. All you need is the site URL. If you look in the template, the gateway is in a hidden field.

Code:

<input type="hidden" name="notify_url" value="{vb:raw vboptions.bburl}/payment_gateway.php?method=paypal" />

here you said NO it's only the website url that should be written , but in your first reply you told me to write in IPN the same thing @kh99 said.
6) And if you are specifying the IPN URL in your paypal account then make sure that is correct. If this is your forum:
http://www.vbulletin.com/forum/
Then the IPN URL should be:
http://www.vbulletin.com/forum/payme...?method=paypal

Also all the mentioned things are already made and didn't change anything , the only thing that I didn't get is this one, would you explain it more:
4) Make sure your forum directory is not behind a htaccess login because that will prevent paypal from accessing the callback URL.

ozzy47 01-06-2015 06:03 PM

No, all you need is your main site url in the IPN settings. Also did you check your logs like I asked?

angemon 01-06-2015 06:14 PM

Quote:

Originally Posted by ozzy47 (Post 2530794)
No, all you need is your main site url in the IPN settings. Also did you check your logs like I asked?

still nothing , by the way I need to tell you that I'm using this system in my forum
http://www.vbulletin.org/forum/showt...t=point+system
and it's working with paypal , people can actually buy coins using their paypal , so the forum does get paypal requests even without setting this IPN thing , so I really don't know why it's only the subscriptions that are No more working , it has been working fine with HTTP , and the point system was working with HTTP and still working with HTTPS , so what is the problem :( ?

Zachery 01-06-2015 06:39 PM

Did you check your http access logs? Its really important.

kh99 01-06-2015 07:21 PM

Quote:

Originally Posted by angemon (Post 2530671)

I looked at the code a little more and I believe that error message comes from paypal_gateway.php, which means you must be getting the IPN from paypal. When the IPN is received, the script connects to paypal and sends it back to verify it, and if that fails for some reason, you get authentification_failure. Unfortunately there isn't a lot more information. One thing it checks is the email address that you have when you set up paypal as a payment method, but since it was working before you went to https, unless you changed it, that's probably not it.

Any way to set up something like a .htaccess to allow access to just the payment_gateway.php via http? I'm not a server admin person so I don't know how hard that would be.

Edit: oh, actually, now that I think about it a little more, if you only have a few of those it could just be someone other than paypal accessing that script (I think I did it myself at least a couple of times). So maybe you still need to be looking at whether or not paypal is connecting to your server.

ozzy47 01-06-2015 08:18 PM

Quote:

Originally Posted by kh99 (Post 2530802)
Edit: oh, actually, now that I think about it a little more, if you only have a few of those it could just be someone other than paypal accessing that script (I think I did it myself at least a couple of times). So maybe you still need to be looking at whether or not paypal is connecting to your server.

I asked this in post #18 and no answer yet.

Quote:

Check out, your server's access logs and see if it is actually trying to access your site, should look something like this, 123.0.21.3 - - [28/Aug/2012:21:29:57 +0100] "POST /payment_gateway.php HTTP/1.0" 200 - "-" "-", and then check your sites error log and see if you see something like this, [Tue Aug 28 21:29:57 2012] [error] [client 123.0.21.3] client denied by server configuration:
Unless I missed the info in the posts somewhere.

kh99 01-06-2015 08:26 PM

Quote:

Originally Posted by ozzy47 (Post 2530806)
I asked this in post #18 and no answer yet.



Unless I missed the info in the posts somewhere.

Yes, I realize that. You've actually said it twice (well, three times now) and Zachery once. That's why I said still need to be looking....

angemon 01-06-2015 09:07 PM

Quote:

Originally Posted by ozzy47 (Post 2530806)
I asked this in post #18 and no answer yet.

Unless I missed the info in the posts somewhere.

I've been trying to look where to find the server logs , since I haven't setup error handler on the vbulletin option , and when I open my website using FTP I can't find the logs file which I always find in the root directory for my other websites (not vbulletin). So it will be great if you can tell me where to find that , and I've shown you some pictures for the paypal fails so I guess the server is not accepting paypal to log (just for buying subscription) , how to solve that !?

ozzy47 01-06-2015 09:08 PM

That is something you would have to ask your host where those logs are.

angemon 01-06-2015 09:51 PM

Quote:

Originally Posted by ozzy47 (Post 2530817)
That is something you would have to ask your host where those logs are.

ok I'm contacting the hosting support , but let say I've checked the logs and found what you told me , so what is the solution for that !? so we can try it ?

HM666 01-06-2015 09:56 PM

Yeah you may not find your logs via FTP, most hosts do not have them placed there were they can easily be downloaded. You can usually view them in cPanel if you have that or possibly Plesk although I do not remember at the moment. Your host will know exactly where you should view them. Its usually not something that you have to have installed, usually with most hosts its already there but it may depend on your web host.


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01455 seconds
  • Memory Usage 1,889KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (27)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete