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

Laravel Error: IuguObjectNotFound #63

Open
paulocosta94 opened this issue Mar 4, 2024 · 3 comments
Open

Laravel Error: IuguObjectNotFound #63

paulocosta94 opened this issue Mar 4, 2024 · 3 comments

Comments

@paulocosta94
Copy link

<?php
namespace App\Http\Controllers;
use Iugu; // Import the Iugu class
use Iugu_Customer; // Import the Iugu_Customer class

class TestController extends Controller {

    public function index() {

        Iugu::setApiKey('API_KEY_HERE');
        Iugu_Customer::create(
           [
                'email' => '[email protected]',
                'name' => 'John'
            ]
        );
    }

}
@paulocosta94
Copy link
Author

paulocosta94 commented Mar 4, 2024

Currently using:
PHP 8.1.0
Laravel 10.46.0

@pnegri
Copy link
Contributor

pnegri commented Mar 6, 2024

Pf tente novamente atualizar. Subi a versão no packagist. Veja a versão da iugu-php tb, deveria estar na 1.0.7

@paulocosta94
Copy link
Author

Mesmo atualizando o pacote para a versão 1.0.7, o erro IuguObjectNotFound continua sendo exibido em todas as requisições.

Só consegui resolver alterando no arquivo lib/Iugu/APIRequest.php a configuração $opts[CURLOPT_SSL_VERIFYPEER] para false.

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

2 participants