FacturaPuntoCom / WHMCS33

Plugin para WHMCS version 7.x compatible con CFDI 3.3
2 stars 3 forks source link

WHMCS 8 guzzlehttp\psr7\response::json() #5

Open mterrats opened 3 years ago

mterrats commented 3 years ago

El método response->json() no existe actualmente y debe ser reemplazado.

Fix rápido sería algo así:

# ./modules/addons/facturacom/lib/Admin/CoreModule.php

        $restApi = new Client;
        $request = $restApi->get($uri, [
            'headers' => [
                'F-API-KEY' => $Setting['ApiKey'],
                'F-SECRET-KEY' => $Setting['ApiSecret'],
                'F-PLUGIN' => '***********',
                'Content-Type' => 'application/json',
            ],
        ]);
        return json_decode($request->getBody()->getContents(),1);
FacturaPuntoCom commented 3 years ago

Hola FacturaPuntoCom/WHMCS33!

Gracias por tu mensaje. Nuestro equipo le responderá en breve y lo actualizaremos por correo electrónico.

Puedes dar seguimiento a tu petición con nosotros en cualquier momento Centro de ayuda factura.com [https://soporte.factura.com/conversation/view/87747].

Saludos!

Este es un mensaje Factura.com enviado por Kayako [https://kayako.com].