nasagnilac Posted February 3, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Share Posted February 3, 2014 I got a problem with flux donation.. When my player donates thru paypal, I will receive the money but they will not receive any credits from our website. please help Link to comment Share on other sites More sharing options...
Kido Posted February 5, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 5, 2014 did he get any error, or do you get any error message? also, try to llok on the tables of the sql, i'm not pretty sure abut this but there must be a place where flux saves the donations or points Link to comment Share on other sites More sharing options...
nasagnilac Posted February 5, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted February 5, 2014 There is no error and it don't even add a receipt on the sql.. I receive the money but they don't receive any credits.. I'm not sure if its depend on the time. is this correct? 'DateDefaultTimezone' => Asia/Manila, or this one 'DateDefaultTimezone' => 'Asia/Manila', Link to comment Share on other sites More sharing options...
Kido Posted February 5, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 5, 2014 There is no error and it don't even add a receipt on the sql.. I receive the money but they don't receive any credits.. I'm not sure if its depend on the time. is this correct? 'DateDefaultTimezone' => Asia/Manila, or this one 'DateDefaultTimezone' => 'Asia/Manila', well i'm sure that if you took it from php page time zones it's ok however, i came to think that maybe it will have to pass certain time to see the player get points have you checked by yourself? out of that i can't think any other reason D: Link to comment Share on other sites More sharing options...
Missingno Posted February 5, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 135 Reputation: 41 Joined: 02/05/14 Last Seen: December 23, 2022 Share Posted February 5, 2014 Go to your PayPal settings and add the notification URL to your IPNs: http://yourwebsite.com/?module=donate&action=notify Link to comment Share on other sites More sharing options...
nasagnilac Posted February 7, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted February 7, 2014 (edited) I just receive today a donation thru paypal.. but still the same problem here is the error_log. error_log.txt Edited February 7, 2014 by gmprestige Link to comment Share on other sites More sharing options...
martooth Posted February 15, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 2 Joined: 04/30/13 Last Seen: December 15, 2014 Share Posted February 15, 2014 I'm getting the same issue here with Flux aswell. Donations have worked fine for a year now and randomly they no longer work this year (which i just thought now maybe it is a year thing). The payments are going through fine but flux is getting a not verified from paypal for some reason. Anybody else having the same issue or have this resolved by chance? Link to comment Share on other sites More sharing options...
nasagnilac Posted February 16, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted February 16, 2014 bump Link to comment Share on other sites More sharing options...
Netsrot Posted February 16, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 77 Reputation: 5 Joined: 12/05/12 Last Seen: May 28, 2016 Share Posted February 16, 2014 I'm getting the same issue here with Flux aswell. Donations have worked fine for a year now and randomly they no longer work this year (which i just thought now maybe it is a year thing). The payments are going through fine but flux is getting a not verified from paypal for some reason. Anybody else having the same issue or have this resolved by chance? Would ask PayPal or read their FAQ Regards Nets Link to comment Share on other sites More sharing options...
nasagnilac Posted February 17, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted February 17, 2014 I guess the real problem is the flux because it's the only one who is responsible for the players credits. Link to comment Share on other sites More sharing options...
Netsrot Posted February 17, 2014 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 77 Reputation: 5 Joined: 12/05/12 Last Seen: May 28, 2016 Share Posted February 17, 2014 I guess the real problem is the flux because it's the only one who is responsible for the players credits. I think, Flux is waiting for something from Paypal that is not there anymore. Maybe Paypal canceled that handshake and your Flux is 100% fine. I have a problem with that sandbox.paypal.com-thingie, but thats 100% paypal cause when i visit that page manualy I get the same message from paypal. Link to comment Share on other sites More sharing options...
martooth Posted February 17, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 2 Joined: 04/30/13 Last Seen: December 15, 2014 Share Posted February 17, 2014 I have resolved this if anybody else is still having this exact issue. Link to comment Share on other sites More sharing options...
Kido Posted February 17, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 17, 2014 I have resolved this if anybody else is still having this exact issue. tello us how please o: for future references o:! Link to comment Share on other sites More sharing options...
martooth Posted February 17, 2014 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 19 Reputation: 2 Joined: 04/30/13 Last Seen: December 15, 2014 Share Posted February 17, 2014 (edited) Ok so the problem is here in flux's root/lib/flux/PaymentNotifyRequest.php while (!feof($fp)) { $line = trim(fgets($fp)); } // Close connection. fclose($fp); // Check verification status of the notify request. if (strtoupper($line) == 'VERIFIED') { $this->logPayPal('Notification verified. (recv: VERIFIED)'); $this->txnIsValid = true; return true; } else { $this->logPayPal('Notification failed to verify. (recv: %s)', strtoupper($line)); return false; } The first while statement that is setup to read the last line in the paypal response. for "VERIFIED". This used to work but for me paypal's response's last line is now blank and the "VERIFIED" line is now the second last line. I'm not gonna recommend a code change to fix this due to possible security issues a change might create, but basically one would just need to modify the code so that it checks the second last line or just checks for a VERIFIED on any line from the paypal response. Edited February 17, 2014 by martooth Link to comment Share on other sites More sharing options...
Kido Posted February 17, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted February 17, 2014 thank you so much, this totally should have a look in for the devs/scripters o:! Link to comment Share on other sites More sharing options...
nasagnilac Posted February 23, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted February 23, 2014 Ok so the problem is here in flux's root/lib/flux/PaymentNotifyRequest.php while (!feof($fp)) { $line = trim(fgets($fp)); } // Close connection. fclose($fp); // Check verification status of the notify request. if (strtoupper($line) == 'VERIFIED') { $this->logPayPal('Notification verified. (recv: VERIFIED)'); $this->txnIsValid = true; return true; } else { $this->logPayPal('Notification failed to verify. (recv: %s)', strtoupper($line)); return false; } The first while statement that is setup to read the last line in the paypal response. for "VERIFIED". This used to work but for me paypal's response's last line is now blank and the "VERIFIED" line is now the second last line. I'm not gonna recommend a code change to fix this due to possible security issues a change might create, but basically one would just need to modify the code so that it checks the second last line or just checks for a VERIFIED on any line from the paypal response. Can you please share your I codes because I don't know what to do. Link to comment Share on other sites More sharing options...
Cookie Posted February 24, 2014 Group: Members Topic Count: 20 Topics Per Day: 0.00 Content Count: 213 Reputation: 109 Joined: 05/21/12 Last Seen: December 27, 2014 Share Posted February 24, 2014 PayPal changed their payment gateway request requirements. Therefore, in /lib/Flux/PaymentNotifyRequest.php::verify, you need to figure out the changes PayPal made and alter the request body here: $qString = 'cmd=_notify-validate&'.$this->ipnVarsToQueryString(); $request = "POST /cgi-bin/webscr HTTP/1.1\r\n"; $request .= "Content-Type: application/x-www-form-urlencoded\r\n"; $request .= 'Content-Length: '.strlen($qString)."\r\n"; $request .= 'Host: '.$this->ppServer."\r\n"; $request .= "Connection: close\r\n\r\n"; $request .= $qString; I'd do it for you, but truthfully, I forgot exactly what they changed now. Personally, I would've made this call a cURL. Then again, I would've written FluxCP completely different anyway and not tried to re-create the MVC cogwheel as the original programmers did. Link to comment Share on other sites More sharing options...
Kido Posted March 7, 2014 Group: Members Topic Count: 127 Topics Per Day: 0.03 Content Count: 1445 Reputation: 164 Joined: 08/17/13 Last Seen: July 11, 2019 Share Posted March 7, 2014 coool o: huh i have to apply what cookie and gmprestige and the link you gave to the fluxcp right o:! thank you so much o:! Link to comment Share on other sites More sharing options...
nasagnilac Posted April 21, 2014 Group: Members Topic Count: 89 Topics Per Day: 0.02 Content Count: 232 Reputation: 15 Joined: 11/02/13 Last Seen: December 19, 2024 Author Share Posted April 21, 2014 I want to open this topic again... I guess this part is been changed again by paypal. Please help $qString = 'cmd=_notify-validate&'.$this->ipnVarsToQueryString(); $request = "POST /cgi-bin/webscr HTTP/1.1\r\n"; $request .= "Content-Type: application/x-www-form-urlencoded\r\n"; $request .= 'Content-Length: '.strlen($qString)."\r\n"; $request .= 'Host: '.$this->ppServer."\r\n"; $request .= "Connection: close\r\n\r\n"; $request .= $qString; Link to comment Share on other sites More sharing options...
Question
nasagnilac
I got a problem with flux donation.. When my player donates thru paypal, I will receive the money but they will not receive any credits from our website. please help
Link to comment
Share on other sites
18 answers to this question
Recommended Posts