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

Not authenticated #29

Open
CharricosBack opened this issue Jun 10, 2024 · 0 comments
Open

Not authenticated #29

CharricosBack opened this issue Jun 10, 2024 · 0 comments

Comments

@CharricosBack
Copy link

CharricosBack commented Jun 10, 2024

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.
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

1 participant