Exemplo n.º 1
0
 public static function getInstance()
 {
     if (null === self::$instance) {
         self::$instance = new self();
     }
     return self::$instance;
 }
 function infomod($payment_module)
 {
     $var = null;
     if ($payment_module == '') {
         return null;
     }
     $check_paybank = explode('_paybank', $payment_module);
     if (@$check_paybank[0] == 'Pay') {
         $payment_module = 'Pay_paybank';
         $var = @$check_paybank[1];
     }
     if (!class_exists($payment_module)) {
         basics::redirect(Translate::instance()->getOriginal("cart") . '/' . Translate::instance()->getOriginal("payment"));
         return null;
     }
     $mtemp = new $payment_module($var);
     $stdclass = new stdClass();
     $stdclass->title = $mtemp->title();
     $stdclass->description = $mtemp->description();
     return $stdclass;
 }
 function endstep()
 {
     basics::redirect(Translate::instance()->getOriginal("cart") . '/' . Translate::instance()->getOriginal("ending"));
     //     $trans->
 }