public function selection()
 {
     global $order;
     $display = parent::selection();
     rpSession::setRpSessionEntry('basketAmount', rpData::getBasketAmount($order));
     rpSession::setRpSessionEntry('securityCode', $this->securityCode);
     rpSession::setRpSessionEntry('profileId', $this->profileId);
     if (!is_null($display)) {
         $minVarName = 'min' . ucfirst(strtolower($order->billing['country']['iso_code_2']));
         $maxVarName = 'max' . ucfirst(strtolower($order->billing['country']['iso_code_2']));
         $privacy = '';
         $privacyConstant = 'MODULE_PAYMENT_' . strtoupper($this->code) . '_RATEPAY_PRIVACY_URL_' . strtoupper($order->billing['country']['iso_code_2']);
         if (defined($privacyConstant)) {
             $privacy = constant($privacyConstant);
         }
         $smarty = new Smarty();
         /* BEGINN OF DEVICE FINGERPRINT CODE */
         if (!rpSession::getRpSessionEntry('RATEPAY_DFP_TOKEN') && rpDb::getRpDfpSId()) {
             $ratepay_dfp_token = md5($order->info['total'] . microtime());
             rpSession::setRpSessionEntry('RATEPAY_DFP_TOKEN', $ratepay_dfp_token);
             $smarty->assign('RATEPAY_DFP_TOKEN', $ratepay_dfp_token);
             $smarty->assign('RATEPAY_DFP_SNIPPET_ID', rpDb::getRpDfpSId());
         }
         /* END OF DEVICE FINGERPRINT CODE */
         //CS Aenderung des Value von $display['module'] fuer die Ausgabe
         $display['module'] = $this->public_title;
         $display['fields'][] = array('title' => '', 'field' => $smarty->fetch(CURRENT_TEMPLATE . '/module/ratepay_rate.html'));
     }
     return $display;
 }
 public function selection()
 {
     global $order;
     $display = parent::selection();
     rpSession::setRpSessionEntry('basketAmount', rpData::getBasketAmount($order));
     if (!is_null($display)) {
         $minVarName = 'min' . ucfirst(strtolower($order->billing['country']['iso_code_2']));
         $maxVarName = 'max' . ucfirst(strtolower($order->billing['country']['iso_code_2']));
         $privacy = '';
         $privacyConstant = 'MODULE_PAYMENT_' . strtoupper($this->code) . '_RATEPAY_PRIVACY_URL_' . strtoupper($order->billing['country']['iso_code_2']);
         if (defined($privacyConstant)) {
             $privacy = constant($privacyConstant);
         }
         $smarty = new Smarty();
         $smarty->assign('ratepayPrivacyUrl', $privacy);
         $smarty->assign('RATEPAY_DATA_1', RATEPAY_SEPA_DATA_1);
         $smarty->assign('RATEPAY_DATA_2', RATEPAY_SEPA_DATA_2);
         $smarty->assign('RATEPAY_DATA_3', RATEPAY_SEPA_DATA_3);
         $smarty->assign('RATEPAY_INFO_1', RATEPAY_SEPA_INFO_1);
         $smarty->assign('RATEPAY_INFO_2', RATEPAY_SEPA_INFO_2);
         $smarty->assign('RATEPAY_INFO_3', RATEPAY_SEPA_INFO_3);
         $smarty->assign('RATEPAY_INFO_4', RATEPAY_SEPA_INFO_4);
         $smarty->assign('RATEPAY_INFO_5', RATEPAY_SEPA_INFO_5);
         $smarty->assign('RATEPAY_INFO_6', RATEPAY_SEPA_INFO_6);
         $smarty->assign('RATEPAY_INFO_7', RATEPAY_SEPA_INFO_7);
         $smarty->assign('RATEPAY_ACCOUNT_HOLDER', RATEPAY_SEPA_ACCOUNT_HOLDER);
         $smarty->assign('RATEPAY_ACCOUNT_NUMBER', RATEPAY_SEPA_ACCOUNT_NUMBER);
         $smarty->assign('RATEPAY_ACCOUNT_SORT_CODE', RATEPAY_SEPA_ACCOUNT_SORT_CODE);
         $smarty->assign('RATEPAY_ACCOUNT_BANK_NAME', RATEPAY_SEPA_ACCOUNT_BANK_NAME);
         $smarty->assign('bankData', $this->getBankData());
         $smarty->caching = 0;
         /* BEGINN OF DEVICE FINGERPRINT CODE */
         if (!rpSession::getRpSessionEntry('RATEPAY_DFP_TOKEN') && rpDb::getRpDfpSId()) {
             $ratepay_dfp_token = md5($order->info['total'] . microtime());
             rpSession::setRpSessionEntry('RATEPAY_DFP_TOKEN', $ratepay_dfp_token);
             $smarty->assign('RATEPAY_DFP_TOKEN', $ratepay_dfp_token);
             $smarty->assign('RATEPAY_DFP_SNIPPET_ID', rpDb::getRpDfpSId());
         }
         /* END OF DEVICE FINGERPRINT CODE */
         //CS Aenderung des Value von $display['module'] fuer die Ausgabe
         $display['module'] = $this->public_title;
         $display['fields'][] = array('title' => '', 'field' => $smarty->fetch(CURRENT_TEMPLATE . '/module/ratepay_sepa.html'));
     }
     return $display;
 }