Skip to content

URL not working #10

Open
Open
@crisscott

Description

@crisscott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions