$points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
// Remove the registration fee
- $points = $points - getConfig('points_register');
+ $points = $points - getPointsRegister();
// Is there a percentage or fixed fee?
$points = WERNIS_TAKE_FEE($points, 'payout');