Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.
/ sat-cfdi Public archive

Library to consult the status of a cfdi on the SAT page

Notifications You must be signed in to change notification settings

blacktrue/sat-cfdi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAT-CFDI

Build Status

Obtiene el estatus de un CFDI ante la autoridad y entrega la evidencia.

Instalacion por composer

composer require blacktrue/sat-cfdi

Ejemplo de uso

require "vendor/autoload.php";

use Blacktrue\CfdiValidator\Validator;

$satValidator = new Validator();

$response = $satValidator->setRfcEmisor('BMN930209927')
    ->setRfcRecpetor('AUAC920422D38')
    ->setUuid('B80052EB-3C91-4842-BA3C-DAEEDAC51F31')
    ->setPhantomBin('phantomjs')
    ->validate();
    
echo $response->getMessage(); //"Comprobante obtenido satisfactoriamente", "Recurso no encontrado, intente mas tarde."
echo $response->getEstate(); //No encontrado, Vigente, Cancelado
echo $response->getFechaCancelacion(); //Si es cancelacion

echo $satValidator->generateImage() //Imagen en base64

About

Library to consult the status of a cfdi on the SAT page

Resources

Stars

Watchers

Forks

Packages

No packages published