"", "pratica" => "", "ordine" => ""]; // var $onSubmit = function($dati){}; var $controllaConfermatoInStep = []; var $step_var = "form_step"; var $formUrl = 'https://secure.sellapersonalcredit.it/econsel/public/entry/pf/'; function demoInfo(){ return " Comunicare al commerciale del cliente il link da impostare per come chiusura della procedura (viene fatto un redirect diretto sulla pagina):
" . $this->Procedura->genera_link(array_merge($this->restart_params, array($this->Procedura->metodo_var=>$this->metodo_key, $this->step_var=>"s2s"))) . "

Verificare che cliccando sul sistema la procedura apra la richiesta senza errori (inutile compilare tutta la procedura, il sistema richiede molti step e dati reali, torna sempre su stato incerto). Per verificare il funzionamento dei tre stati disponibili:

- Finanziamento concesso: " . $this->Procedura->genera_link(array_merge($this->restart_params, array($this->Procedura->metodo_var=>$this->metodo_key, $this->step_var=>"s2s", "ordine" => $this->identificativo, "stato" => "OK"))) . "
- Finanziamento negato: " . $this->Procedura->genera_link(array_merge($this->restart_params, array($this->Procedura->metodo_var=>$this->metodo_key, $this->step_var=>"s2s", "ordine" => $this->identificativo, "stato" => "KO"))) . "
- Finanziamento incerto: " . $this->Procedura->genera_link(array_merge($this->restart_params, array($this->Procedura->metodo_var=>$this->metodo_key, $this->step_var=>"s2s", "ordine" => $this->identificativo, "stato" => "WW"))) . "

Nel link viene incluso anche il parametro 'pratica' che può essere usato per salvare il numero di pratica assegnato da BancaSella alla richiesta di finanziamento "; } function ignoreSetupError(){ //banca sella ha un url s2s fisso, senza parametri, quindi non si riesce a settare importo e identificativo // if(in_array($_GET[$this->step_var], array('s2s', 'return_ok'))) return true; if ($_GET["stato"] && $_GET["ordine"]) return true; else return false; } function auto(){ global $DATI, $TXT; $step = $_GET[$this->step_var]; if(!$_GET[$this->step_var]) { if($_GET["ordine"]) trigger_error("Il parametro ordine viene usato da BancasellaRate per comunicare l'identificativo sulla s2s"); $this->Procedura->iniziato($this->nome_metodo); $DATI["FORM_ANTISPAM"] = "NO"; if($this->demo) $this->formUrl = 'https://sandbox.sellapersonalcredit.it/econsel/public/entry/pf';; $html = '
' . ($this->testoPreForm ? $this->testoPreForm : null) . '
' . ($this->commissioni ? '' : '') . ' ' . navbar_item([ "tipo" => "button", "ico_svg" => gall_svg_tag(ipath("arrows/1/dx.svg")), "ordine_span" => "txt_ico", "valore" => $this->etichettaPulsanteInizia, "classi_css_aggiuntive" => array("expand-collapse"), "attributi_inline_bottone" => ' onclick="submit(this.form)"', ]) . '
'; return $html; } else if($_GET[$this->step_var] == "s2s") { if(!$_GET['ordine']){ return $this->Procedura->errore(); } else { $this->Procedura->identificativo = stripslashes($_GET['ordine']); switch($_GET["stato"]){ case "OK": $this->Procedura->confermato($this->Procedura->identificativo); return $this->Procedura->concluso(); case "KO": return $this->Procedura->errore($this->etichettaErroreFinanziamentoRifiutato); case "WW": return $this->Procedura->incerto(); } } } else { trigger_error("Step non gestito nel pagamento BancasellaRate"); } } function setValuta($code){ } } ?>