Jump to content
  • 0

Flux Donation Problem


Question

Posted

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

Posted

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

Posted

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',

Posted

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:

Posted

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?

Posted

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

Posted

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.

Posted

I have resolved this if anybody else is still having this exact issue.

 

tello us how please o: for future references o:!

Posted (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 by martooth
Posted

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.

Posted

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

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:!

Posted

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;
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...