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

Authentication failed with PagSeguro API #137

Open
roneclay opened this issue Oct 25, 2023 · 2 comments
Open

Authentication failed with PagSeguro API #137

roneclay opened this issue Oct 25, 2023 · 2 comments

Comments

@roneclay
Copy link

Pagamento via PIX retorna ao carrinho e cria o pedido, mesmo tendo erro.

No entanto, apesar de reclamar de falta de chave pública, no log a chave existe.

Alguém já passou por isso?

[2023-10-25T17:48:06.572542+00:00] main.DEBUG: Authentication failed with PagSeguro API. Check registered email and token. Payback return: Public_key missing. [] [] [2023-10-25T17:52:19.848824+00:00] main.DEBUG: {"email":"EMAIL_DE_LOGIN_PAGSEGURO","paymentMethod":"redirect","currency":"BRL","reference":"000000043","extraAmount":"0.00","senderName":"Roni Santos","senderAreaCode":"48","senderPhone":"996658088727","senderEmail":"[email protected]","enableRecover":"true","shippingAddressRequired":"","acceptPaymentMethodGroup":"PIX","notificationURL":"URLDALOJA\/pseguro\/notification\/index","redirectURL":"URLDALOJA/checkout\/onepage\/success\/","itemId1":"137","itemDescription1":"FIO MOLLET CIRCULO 40G COR","itemAmount1":"3.25","itemQuantity1":4,"itemId2":"141","itemDescription2":"AGULHA SINGER 1955 (DPX5)","itemAmount2":"15.10","itemQuantity2":1,"itemId3":"143","itemDescription3":"FIO MOLLET CIRCULO 40G COR","itemAmount3":"3.25","itemQuantity3":1,"shippingAddressStreet":"Avenida Jacob Macanhan","shippingAddressNumber":"326","shippingAddressComplement":"","shippingAddressDistrict":"Complemento","shippingAddressPostalCode":"83326000","shippingAddressCity":"Pinhais","shippingAddressState":"PR","shippingAddressCountry":"BRA","shippingType":"3","shippingCost":"0.00","billingAddressStreet":"Avenida Jacob Macanhan","billingAddressNumber":"326","billingAddressComplement":"","billingAddressDistrict":"Complemento","billingAddressPostalCode":"83326000","billingAddressCity":"Pinhais","billingAddressState":"PR","billingAddressCountry":"BRA"} [] [] [2023-10-25T17:52:19.849032+00:00] main.DEBUG: Parameters being sent to API (/v2/checkout): array ( 'email' => '[email protected]', 'paymentMethod' => 'redirect', 'currency' => 'BRL', 'reference' => '000000043', 'extraAmount' => '0.00', 'senderName' => 'Roni Santos', 'senderAreaCode' => '48', 'senderPhone' => '996658052', 'senderEmail' => '[email protected]', 'enableRecover' => 'true', 'shippingAddressRequired' => '', 'acceptPaymentMethodGroup' => 'PIX', 'notificationURL' => 'https://URLDALOJA/pseguro/notification/index', 'redirectURL' => 'URLDALOJAcheckout/onepage/success/', 'itemId1' => '137', 'itemDescription1' => 'FIO MOLLET CIRCULO 40G COR', 'itemAmount1' => '3.25', 'itemQuantity1' => '4', 'itemId2' => '141', 'itemDescription2' => 'AGULHA SINGER 1955 (DPX5)', 'itemAmount2' => '15.10', 'itemQuantity2' => '1', 'itemId3' => '143', 'itemDescription3' => 'FIO MOLLET CIRCULO 40G COR', 'itemAmount3' => '3.25', 'itemQuantity3' => '1', 'shippingAddressStreet' => 'Avenida Jacob Macanhan', 'shippingAddressNumber' => '326', 'shippingAddressComplement' => '', 'shippingAddressDistrict' => 'Complemento', 'shippingAddressPostalCode' => '83326000', 'shippingAddressCity' => 'Pinhais', 'shippingAddressState' => 'PR', 'shippingAddressCountry' => 'BRA', 'shippingType' => '3', 'shippingCost' => '0.00', 'billingAddressStreet' => 'Avenida Jacob Macanhan', 'billingAddressNumber' => '326', 'billingAddressComplement' => '', 'billingAddressDistrict' => 'Complemento', 'billingAddressPostalCode' => '83326000', 'billingAddressCity' => 'Pinhais', 'billingAddressState' => 'PR', 'billingAddressCountry' => 'BRA', 'public_key' => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', <-- troquei por X por segurança ) [] [] [2023-10-25T17:52:20.396631+00:00] main.DEBUG: Retorno PagSeguro (/checkout): '<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><checkout><code>455C51E20808A92114B3DFA16DDF58D3</code><date>2023-10-25T14:52:20.000-03:00</date></checkout>' [] []

@r-martins
Copy link
Owner

r-martins commented Oct 25, 2023

Oi, @roneclay . Tudo bom?
Você poderia abrir um ticket pra mim e passar mais detalhes (url da loja, versao, etc)?

Você consegue reproduzir o problema na loja demo?
Sigo no aguardo.

@roneclay
Copy link
Author

Oi, @roneclay . Tudo bom? Você poderia abrir um ticket pra mim e passar mais detalhes (url da loja, versao, etc)?

Você consegue reproduzir o problema na loja demo? Sigo no aguardo.

Opa Ricardo, obrigado pelo retorno;

Abri o chamado. Fico no aguardo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants