URL not working
Opened this issue · 1 comments
crisscott commented
This is all my code
$url = "https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?";
$cadena = sprintf("%s&id=%s&re=%s&rr=%s&tt=%s&fe=%s", $url, $uuid, $emisor, $receptor, $total, substr($sello, -8));
$oQRC = new QRCode();
$oQRC->url($cadena)->finish();
This is my QR
The URL is not working, but when I modify this lines
public function __construct() { $this->sData = 'BEGIN:VCARD' . "\n"; $this->sData .= 'VERSION:4.0' . "\n"; }
To
public function __construct() { $this->sData = '' . ""; $this->sData .= '' . ""; }
AND
public function finish() { $this->sData .= 'END:VCARD'; $this->sData = urlencode($this->sData); return $this; }
TO
public function finish() { $this->sData .= ''; $this->sData = urlencode($this->sData); return $this; }
it works
twiddly commented
thank you for this, I couldn't get it to work otherwise