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

Erro em abrir arquivo teste do pagseguro. #216

Open
aldeirnohan opened this issue Nov 3, 2020 · 1 comment
Open

Erro em abrir arquivo teste do pagseguro. #216

aldeirnohan opened this issue Nov 3, 2020 · 1 comment

Comments

@aldeirnohan
Copy link

aldeirnohan commented Nov 3, 2020

Fiz a instalação do sdk do pagseguro via composer no meu servidor e adicionei as credencias no arquivo Wrapper.php e o renomeei. So que ao tentar abrir o arquivo teste createPayment.php da seguinte pasta /pagseguro-sdk-php-master/public/Checkout/createPayment.php apresenta esse erro no navegador.

Fatal error: Class 'PagSeguro\Library' not found in /etc/nginx/html/paypaltest/vendor/pagseguro-sdk-php-master/public/Checkout/createPayment.php on line 31

@gledsoneduardo
Copy link

Pode parecer meio boba a minha dica mas confere as "" na frente das classes

\PagSeguro\Library::initialize();
\PagSeguro\Library::cmsVersion()->setName("Nome")->setRelease("1.0.0");
\PagSeguro\Library::moduleVersion()->setName("Nome")->setRelease("1.0.0");

$payment = new \PagSeguro\Domains\Requests\Payment();

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