pH-7/QRCode-Generator-PHP-Class

URL not working

Opened this issue · 1 comments

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();

url test: https://verificacfdi.facturaelectronica.sat.gob.mx/default.aspx?&id=83DD7B73-B340-44E7-9CC5-BC1F3D20DCBE&re=ASE870213853&rr=MAML9611136T5&tt=4064.79&fe=4xV+yQ==

This is my QR

imagen

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

imagen

thank you for this, I couldn't get it to work otherwise