} // END - if
// Calculate used points
- $content['payed_points'] = $content['target_send'] * getPaymentData($content['payment_id']);
+ $content['payed_points'] = $content['target_send'] * getPaymentPrice($content['payment_id']);
// Subtract them from the user's account and ignore return status
subtractPoints('order', getMemberId(), $content['payed_points']);