// Is the userid set?
if (isValidId($userid)) {
// User does not exists, pay points back
- $points = getPaymentData($mailData['payment_id']);
+ $points = getPaymentPrice($mailData['payment_id']);
initReferralSystem();
addPointsThroughReferralSystem('pool_payback', $mailData['sender_userid'], $points);