blacktrue/sat-cfdi

This package is abandoned and no longer maintained. No replacement package was suggested.

Valida estatus en SAT y obtiene evidencia

Installs: 109

Dependents: 0

Suggesters: 0

Stars: 5

Watchers: 1

Forks: 2

Open Issues: 0

Language:HTML

v4.0.0 2017-12-07 23:34 UTC

README

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