public function __construct($app_name, $test_mode = false) { parent::__construct($app_name); $this->language = '000'; //Autodetectar $this->url_payment = $test_mode ? 'https://sis-t.redsys.es:25443/sis/realizarPago' : 'https://sis.redsys.es/sis/realizarPago'; }
public function __construct($app_name, $test_mode = false) { parent::__construct($app_name); $this->language = '000'; //Autodetectar $this->url_payment = $test_mode ? 'https://sis-t.redsys.es:25443/sis/realizarPago' : 'https://sis.redsys.es/sis/realizarPago'; require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'libs/apiRedsys.php'; }
/** * @param string $app_name * @param bool $sandbox Valor que indica si la petición será ejecuta en el modo sandbox de Paypal, que permite hacer pruebas del módulo de pago sin utilizar dinero real */ public function __construct($app_name, $sandbox = false) { parent::__construct($app_name); $this->url_payment = $sandbox ? 'https://www.sandbox.paypal.com/cgi-bin/webscr' : 'https://www.paypal.com/cgi-bin/webscr'; $this->transaction_type = self::TRANSACTION_PAYMENT; }