PHP code example of xisfacturacion / finkok

1. Go to this page and download the library: Download xisfacturacion/finkok library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

xisfacturacion / finkok example snippets


composer 



use XisFacturacion\Finkok;

$username = "";   //Usuario finkok
$password = "";   //Contraseña finkok
$sandbox = false; // por defecto esta en true

$finkok = new Finkok($username, $password, $sandbox);

$finkok->newCliente($rfc);

$clientes = $finkok->getClientes();

$client = $finkok->getClientePorRfc($rfc);

$response = $finkok->timbrar($xml);

$response = $finkok->cancelar($rfcemisor, $uuid);