-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Buenas tardes, solicito ayuda sobre el siguiente error:
[2024-06-10 14:39:02] local.DEBUG: Unable to create Invoice: Facturapi\Exceptions\Facturapi_Exception: Not authenticated in /var/www/html/liceth/vendor/facturapi/facturapi-php/src/Http/BaseClient.php:208
Stack trace:
#0 /var/www/html/liceth/vendor/facturapi/facturapi-php/src/Resources/Invoices.php(58): Facturapi\Http\BaseClient->execute_JSON_post_request()
#1 /var/www/html/liceth/app/Libraries/BillLibrary.php(247): Facturapi\Resources\Invoices->create()
#2 /var/www/html/liceth/app/Http/Controllers/BillController.php(97): App\Libraries\BillLibrary->createBill()
#3 /var/www/html/liceth/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): App\Http\Controllers\BillController->createBill()
...
Ya se verifico el payload que se genera para la creacion del Invoice, que apunta a:
$invoice = $facturapi->Invoices->create([
"customer" => [
"legal_name" => $request->name,
"email" => $request->email,
"tax_id" => $request->rfc,
"tax_system" => $request->regime, // Régimen Fiscal en el documento
"address" => [
"zip" => $request->zip
]
],
"use" => $request->use, // Uso CFDI en el documento
"payment_method" => "PUE", // PPD Pago en parcialidades
"items" => $product,
"payment_form" => $request->typepayment, // Forma de pago en el documento
//"folio_number" => 581,
//"series" => "F"
]);
Linea $product. Sin embargo ya se hizo pruebas en playground y retorna sin detalles la factura de prueba, en produccion cambia el detalle y retorna no atuhenticated.
Metadata
Metadata
Assignees
Labels
No labels