Customizing SMF > SMF Coding Discussion

[PAID] - Subscription Mod for 1.x

<< < (2/2)

vbgamer45:
If you have a link to a phpinfo page that could give some clues.
Also do you control the server/vps or is it a hosting company?
If it is a hosting company contact them to enable cURL/find out if they are blocking fsockopen.
The curl/fsockopen is an extra check that sends the request back to paypal to verify that the request came from paypal.

Liam_michael:

--- Quote from: live627 on April 22, 2012, 11:45:54 PM ---Did you install any mods recently?

--- End quote ---

No I didn't...

But, they had disabled my account (for some other, unrelated reason - continuous loop led to dump files - fixed now!) on the 18th and all subscriptions after didn't work!


--- Quote from: vbgamer45 on April 22, 2012, 11:49:24 PM ---If you have a link to a phpinfo page that could give some clues.
Also do you control the server/vps or is it a hosting company?
If it is a hosting company contact them to enable cURL/find out if they are blocking fsockopen.
The curl/fsockopen is an extra check that sends the request back to paypal to verify that the request came from paypal.

--- End quote ---

Thanks vbgamer45, I will talk to them and get back to you guys.

Liam_michael:
Hey everyone, want to get back to you on this. They told me to check my phpinfo.php page and it looks to me like it is enabled :( Could someone confirm that?

http://biology-forums.com/phpinfo.php

Moreover, I find that sometimes the subscriptions work fine, whereas other times they don't. It's strange, half of them come out as:


--- Quote ---An error occured whilst attempting to do a paid subscription. The error is shown below:
---------------------------------------------
Could not connect to paypal server
--- End quote ---

Whereas others, of the same subscription come out fine:


--- Quote ---New Paid Subscription
--- End quote ---

This is strange because this never used to happen. ???

Liam_michael:
I think I fixed it:

I was missing the:


--- Code: ---// read the post from PayPal system and add 'cmd'
$req = 'cmd=_notify-synch';

$tx_token = $_GET['tx'];
$auth_token = "{snap}";
$req .= "&tx=$tx_token&at=$auth_token";
--- End code ---

In my Paypal.php

The test run worked, let's hope this was the actual problem! :-[

(edit: removed authentication key for possible security problems)

Navigation

[0] Message Index

[*] Previous page

Go to full version