Closed OPfeajoief13 closed 5 years ago
Make sure to configure correct serviceID in config.php for paygol And login on paygol and configure IPN to paygol_ipn.php Replace "http://".$_SERVER['HTTP_HOST']."/success.php" with "http://yourwebsite.com/success.php" etc
Doesn't work
Check your access.log file and see if paygol_ipn.php is ever contacted Also note the response code, a number between 200 - 550. If it is, check your error.log file to see if there are any errors associated with the paygol_ipn.php page. In windows if using Uniform server, you can find these files in UniServerZ\core\apache2\logs In linux, /var/log/ apache2 or nginx or lighttpd should do the trick.
I solved it by adding the ip in the $_SERVER['REMOTE_ADDR'] that the access.log gave me from paygol_ipn.php.
@OPfeajoief13 But what address did you add? Test it to make it work for everyone, not just you
What do you think?
What web server are you using? My nginx was working fine
windows, uniserv
@OPfeajoief13 Personally, I would recommend you Linux debian or ubuntu windows for public hosting in practice it seems easier but is on the way you can meet probelms like you have.
Right now Im on Linux Ubuntu but now im not getting points again, my paygol_ipn is contacted.
@glombers, @Znote
U have PHP cURL
? Install it sudo apt-get install php5-curl
and restart the web server as you have apache2 service apache2 restart
If you have nginix you do not need it. You can still look for problems on otland
The problem may also be the wrong giving rights to so-called folders chmod
You can give this command a command chown -R www-data:www-data /var/www/html (Your folder with html/php files)
Maybe you have another check because it depends on the hosting
Weird, paypal works, paygol doesnt
anyone knows what this means:
2017/06/24 21:01:28 [error] 22927#22927: 478 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: points in /var/www/paygol_ipn.php on line 30" while reading response header from upstream, client: 213.184.110.64, server: 76.13.101.38, request: "GET /paygol_ipn.php?service_id=367580&country=NL&price=1.00¤cy=EUR&frmprice=1.00&frmcurrency=EUR&custom=1&key=d406441b-547d-11e7-91b6-128b57940774&method=sms&transaction_id=XXXX-XXXX-XXXX-XXXX&keyword=TEST&message=999999&shortcode=9999&message_id=9999999&sender=99999999999&operator=test HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "76.13.101.38" 2017/06/24 21:01:35 [error] 22927#22927: 482 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined index: message_id in /var/www/paygol_ipn.php on line 21 PHP message: PHP Notice: Undefined index: shortcode in /var/www/paygol_ipn.php on line 23 PHP message: PHP Notice: Undefined index: keyword in /var/www/paygol_ipn.php on line 24 PHP message: PHP Notice: Undefined index: message in /var/www/paygol_ipn.php on line 25 PHP message: PHP Notice: Undefined index: sender in /var/www/paygol_ipn.php on line 26 PHP message: PHP Notice: Undefined index: operator in /var/www/paygol_ipn.php on line 27 PHP message: PHP Notice: Undefined index: points in /var/www/paygol_ipn.php on line 30" while reading response header from upstream, client: 213.184.110.64, server: 76.13.101.38, request: "GET /paygol_ipn.php?service_id=367580&country=NL&price=1.00¤cy=EUR&frmprice=1.00&frmcurrency=EUR&custom=1&key=d406441b-547d-11e7-91b6-128b57940774&method=creditcard&transaction_id=XXXX-XXXX-XXXX-XXXX HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "76.13.101.38"
@glombers, @Znote
Paygol changed the way they work
It's not adding points.