} // END - if
// Now we just need to book that points on the user's account
- addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points'], false, 0, getConfig('coupon_payment_method'));
+ 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'))) {
sendAdminNotification('{--ADMIN_COUPON_CASHED_SUBJECT--}', 'admin_coupon_cashed', $content, getMemberId());
// Display message
- displayMessage(getMaskedMessage('MEMBER_COUPON_CODE_CASHED', $content['points']));
+ displayMessage('{%message,MEMBER_COUPON_CODE_CASHED=' . $content['points'] . '%}');
} else {
// No coupon found
displayMessage('{--MEMBER_COUPON_CODE_ALREADY_CASHED--}');