/**
  * Private method to output the payment instructions
  * @param  cbpaidPaymentBasket  $paymentBasket
  * @return bool|string
  */
 private function _outputInstructions($paymentBasket)
 {
     if ($paymentBasket->payment_method == 'offline' || $paymentBasket->payment_method == null) {
         if ($paymentBasket->payment_method == null) {
             $paymentBasket->payment_method = $this->getPayName();
             $paymentBasket->gateway_account = $this->getAccountParam('id');
             $paymentBasket->store();
         }
         // Generate URLs for payment slip:
         $slip_popup_window = $this->getAccountParam('slip_popup_window', 1);
         $slip_urlHtmlSpecialchared = $this->_getSlipUrlHtmlSpecialchared($paymentBasket, $slip_popup_window);
         $slip_link_text = CBPTXT::Th($this->getAccountParam('slip_link_text', "Click here to confirm that you are paying off-line and to display the Payment slip to print"));
         $areYouSureText = CBPTXT::T($this->getAccountParam('slip_link_areyousure_text', "This will lock this transaction for offline payment. Please continue now only if you are preparing the payment now. Are you paying now ?"));
         $ret = "<div class=\"cbpaidInstructions\">" . CBPTXT::Th($this->getAccountParam('regOfflineInstructions')) . "</div>\n";
         $ret .= '<div class="cbpaySlip"><a ';
         if ($areYouSureText || $slip_popup_window) {
             $ret .= 'onclick="';
             if ($areYouSureText) {
                 $ret .= 'if ( confirm( \'' . CBPTXT::jsAddSlashes(htmlspecialchars($areYouSureText)) . '\' ) ) ';
             }
             if ($slip_popup_window) {
                 $ret .= 'window.open(\'' . $slip_urlHtmlSpecialchared . '\', \'payslip\', \'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no\'); return false;" ' . 'target="_blank" ';
             } else {
                 $ret .= ' return true else return false;" ';
             }
         }
         $ret .= 'href="' . $slip_urlHtmlSpecialchared . '">' . $slip_link_text . "</a></div>\n";
     } else {
         $this->_setErrorMSG(CBPTXT::T("Another payment method has already been choosen to pay."));
         $ret = false;
     }
     return $ret;
 }