nasagnilac Posted February 3, 2014 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
Kido Posted February 5, 2014 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
nasagnilac Posted February 5, 2014 Author 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',
Kido Posted February 5, 2014 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:
Missingno Posted February 5, 2014 Posted February 5, 2014 Go to your PayPal settings and add the notification URL to your IPNs: http://yourwebsite.com/?module=donate&action=notify
nasagnilac Posted February 7, 2014 Author 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
martooth Posted February 15, 2014 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?
Netsrot Posted February 16, 2014 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
nasagnilac Posted February 17, 2014 Author 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.
Netsrot Posted February 17, 2014 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.
martooth Posted February 17, 2014 Posted February 17, 2014 I have resolved this if anybody else is still having this exact issue.
Kido Posted February 17, 2014 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:!
martooth Posted February 17, 2014 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
Kido Posted February 17, 2014 Posted February 17, 2014 thank you so much, this totally should have a look in for the devs/scripters o:!
nasagnilac Posted February 23, 2014 Author 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.
Cookie Posted February 24, 2014 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.
Kido Posted March 7, 2014 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:!
nasagnilac Posted April 21, 2014 Author 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;
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
18 answers to this question
Recommended Posts