- // Now we just need to book that points on the user's account
- addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points'], false, 0, getPaymentMethodFromExtensionName('coupon'));
-
- // Subtract points from member account if the admin has selected one
- if (isValidUserId(getConfig('coupon_userid'))) {
- // Subtract from this account
- subtractPoints('cashed_coupon', getConfig('coupon_userid'), $content['points']);
- } // END - if
-
- // Translate some data
- $content['coupon_expired'] = generateDateTime($content['coupon_expired'], '0');
- $content['coupon_created'] = generateDateTime($content['coupon_created'], '0');
-
- // Send admin notification
- sendAdminNotification('{--ADMIN_COUPON_CASHED_SUBJECT--}', 'admin_coupon_cashed', $content, getMemberId());
+ // Run post filter chain
+ $content = runFilterChain('post_cash_coupon', $content);