Fluxcp donation doesn't work

Klutz

New member
Messages
87
Points
0
Hi,
 
I have no idea why my fluxcp donate function doesn't work.
 
i did set:
'AcceptDonations'      => true,                     // Whether or not to accept donations.
'PayPalIpnUrl'         => 'www.sandbox.paypal.com', // The URL for PayPal's IPN responses (www.paypal.com for live and www.sandbox.paypal.com for testing)
'PayPalBusinessEmail'  => '[email protected]',        // Enter the e-mail under which you have registered your business account.
 
I also set the IPN correct:
mysite.com/?module=donate&action=notify
 
I checked website visitors and i see: 
173.0.82.126
/?module=donate&action=notify
12/8/14 11:02 PM
0
       
PayPal IPN ( https://www.pay
 
 
so paypal does send the IPN, but in the control panel the player doesn't get credits and i don't see any donation in the history. (same at the SQL server)
 
Thanks,
 
1. Make sure your paypal account is typed correctly, even capital letter typo won't work.

2. Make sure your paypal account at least few weeks old and verified.

3. Check your paypal logs, if there's error, see what happened to it.

4. Some hosts i.e VPS users are blocked paypal's IP.

5. Make sure your notify link have set enabled, and CP using the same link with it.

6. Try to have updated paymentnotify.php(not the actual name) from somewhere.

 
Last edited by a moderator:
1. Make sure your paypal account is typed correctly, even capital letter typo won't work.

2. Make sure your paypal account at least few weeks old and verified.

3. Check your paypal logs, if there's error, see what happened to it.

4. Some hosts i.e VPS users are blocked paypal's IP.

5. Make sure your notify link have set enabled, and CP using the same link with it.

6. Try to have updated paymentnotify.php(not the actual name) from somewhere.
I will check with my VPS

everything else is ok i see the payment in my paypal account.

about 5 and 6 got example how notify link should be like?

where can i find the paymentnotify.php?

 
Searched especially for you... it's PaymentNotifyRequest.php

Working Links : https://raw.githubusercontent.com/missxantara/fluxcp-ra/master/lib/Flux/PaymentNotifyRequest.php

Thanks me if it does work 
default_smile.png


 
Last edited by a moderator:
'PayPalIpnUrl'         => 'www.sandbox.paypal.com', //
The URL for PayPal's IPN responses (www.paypal.com for live and
www.sandbox.paypal.com for testing)


'www.paypal.com' use this link

 
didn't work

I saw many people has the same problem as me
Did you update the paypal notification modules? and what fluxcp version your using?
yes id id update the "PaymentNotifyRequest" i should update something else?

I have no idea what version i use. where can i check?

 
fluxcp paypal logs:

 
[2014-12-13 14:36:57] Received notification from 173.0.82.126 (ipn.sandbox.paypal.com)
[2014-12-13 14:36:57] Query string: cmd=_notify-validate&mc_gross=5.00&protection_eligibility=Eligible&address_status=confirmed&payer_id=2NT77LLFL6UNE&tax=0.00&address_street=1+Main+St&payment_date=06%3A19%3A15+Dec+13%2C+2014+PST&payment_status=Completed&charset=windows-1252&address_zip=95131&first_name=Tomer&mc_fee=0.45&address_country_code=US&address_name=Tomer+Manzur&notify_version=3.8&custom=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoxMjoiT2xkIFJhZ25hcm9rIjtzOjEwOiJhY2NvdW50X2lkIjtzOjc6IjIwMDAwMDAiO30%3D&payer_status=unverified&business=payt-me%40gmail.com&address_country=United+States&address_city=San+Jose&quantity=0&verify_sign=A6yt83Iroji1Kv.b8cKShnEsjCCZA69NsR5RB8eGxzhG27YMCdu3xkLG&payer_email=paypal-personal%40walla.com&txn_id=65F759536W621281Y&payment_type=instant&last_name=Manzur&address_state=CA&receiver_email=payt-me%40gmail.com&payment_fee=0.45&receiver_id=PYRYYH23PSFEU&txn_type=web_accept&item_name=Donation+Credits%3A+5+CREDIT%28s%29&mc_currency=USD&item_number=&residence_country=US&test_ipn=1&handling_amount=0.00&transaction_subject=YToyOntzOjExOiJzZXJ2ZXJfbmFtZSI7czoxMjoiT2xkIFJhZ25hcm9rIjtzOjEwOiJhY2NvdW50X2lkIjtzOjc6IjIwMDAwMDAiO30%3D&payment_gross=5.00&shipping=0.00&ipn_track_id=4eb374be3fee3
[2014-12-13 14:36:57] Establishing connection to PayPal server at www.sandbox.paypal.com:80...
[2014-12-13 14:36:57] Connected. Sending request back to PayPal...
[2014-12-13 14:36:57] Sent 1187 bytes of transaction data. Request size: 1340 bytes.
[2014-12-13 14:36:57] Reading back response from PayPal...
[2014-12-13 14:36:58] Notification failed to verify. (recv: )
[2014-12-13 14:36:58] Transaction invalid, aborting.
 
what is wrong?
 
used the live paypal on your configuration, sandbox only used for testing purposes if you enabled sandbox.paypal.com on your gateway make sure you have setup also sandbox account on paypal, below is a guide how to setup paypal sandbox

https://developer.paypal.com/docs/classic/lifecycle/sb_create-accounts/
ok, seems Sandbox IPN respone is too slow so the server drop the donation.

on live paypal it works just fine.

a player donate was confrim but he still didn't got the credits what is wrong?

 
Last edited by a moderator:
[2014-12-23 20:47:19] Unknown account #2000014 on server ************, cannot exchange for credits.

The Error from paypal log.

There is account_id 2000014 in login table.

it's comming from here:

if ($servGroup && $exchangeableCurrency) {
$sql = "SELECT COUNT(account_id) AS acc_id_count FROM {$servGroup->loginDatabase}.login WHERE sex != 'S' AND level >= 0 AND account_id = ?";
$sth = $servGroup->connection->getStatement($sql);
$sth->execute(array($accountID));
$res = $sth->fetch();
 
if (!$res) {
$this->logPayPal('Unknown account #%s on server %s, cannot exchange for credits.', $accountID, $serverName);
}
 
 
Level is ok this how it's at my server.
can't understand the problem
 
Last edited by a moderator:
Back
Top