public static function getInstance() { if (is_null(self::$instance)) { self::$instance = new self(); } return self::$instance; }
<?php require_once 'app/includes/header.inc.php'; $items = array(array('name' => 'apuesta', 'price' => 8000, 'descr' => 'descripcion corta')); CPreparePaypment::getInstance()->start($items, $settings['billing']['paypal']);