Znote / ZnoteAAC

Developement repository for the Znote AAC project. A website portal to represent and manage your Open Tibia server.
MIT License
145 stars 127 forks source link

paygol #296

Closed OPfeajoief13 closed 5 years ago

OPfeajoief13 commented 7 years ago

It's not adding points.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/46382110-paygol?utm_campaign=plugin&utm_content=tracker%2F532683&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F532683&utm_medium=issues&utm_source=github).
Znote commented 7 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

OPfeajoief13 commented 7 years ago

Doesn't work

Znote commented 7 years ago

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.

OPfeajoief13 commented 7 years ago

I solved it by adding the ip in the $_SERVER['REMOTE_ADDR'] that the access.log gave me from paygol_ipn.php.

glombers commented 7 years ago

@OPfeajoief13 But what address did you add? Test it to make it work for everyone, not just you

OPfeajoief13 commented 7 years ago

What do you think?

glombers commented 7 years ago

What web server are you using? My nginx was working fine

OPfeajoief13 commented 7 years ago

windows, uniserv

glombers commented 7 years ago

@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.

rudger commented 7 years ago

Right now Im on Linux Ubuntu but now im not getting points again, my paygol_ipn is contacted.

OPfeajoief13 commented 7 years ago

@glombers, @Znote

glombers commented 7 years ago

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

  1. https://otland.net/threads/znote-aac-paypal-points-problem.251538/
  2. https://github.com/Znote/ZnoteAAC/issues/122
  3. https://github.com/Znote/ZnoteAAC/issues/67

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

rudger commented 7 years ago

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&currency=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&currency=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"

rudger commented 7 years ago

@glombers, @Znote

Raggaer commented 6 years ago

Paygol changed the way they work