]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/order.php
Rewrote a lot parts to extract 'payments' table (+ handling) into own extension:
[mailer.git] / inc / modules / order.php
index 68509930dbf9633d25a8fa1653d185468dc545da..a5222540c6cb9101d0aa6e19480e02544699e0ee 100644 (file)
@@ -95,7 +95,7 @@ if (empty($url)) {
                } // 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']);