Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL not working #10

Open
crisscott opened this issue Dec 21, 2022 · 1 comment
Open

URL not working #10

crisscott opened this issue Dec 21, 2022 · 1 comment

Comments

@crisscott
Copy link

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

@twiddly
Copy link

twiddly commented May 17, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants