mercadopago / pix-payment-sample-php

MIT License
2 stars 2 forks source link

Erro 13253 "Collector user without key enabled for QR render" ao gerar PIX no ambiente de teste #2

Closed rodolfosillva closed 2 years ago

rodolfosillva commented 2 years ago

Estou integrando checkout transparente PIX PHP e estou recebendo o erro:

error: MercadoPago\RecuperableError {#1404 ▼ +message: "Collector user without key enabled for QR render" +status: 400 +error: "bad_request" +causes: array:1 [▼ 0 => MercadoPago\ErrorCause {#1326 ▼ +code: 13253 +description: "Collector user without key enabled for QR render"

PS.: Já cadastrei a chave PIX que é pré-requisito. Eu já estava conseguindo gerar o PIX. O trecho de código onde gero o pagamento, que é relativamente simples, é o que segue:

MercadoPago\SDK::setAccessToken(env('PROD_ACCESS_TOKEN')); $payment = new MercadoPago\Payment(); $payment->transaction_amount = $this->payment->valor; $payment->description = $this->payment->description; $payment->payment_method_id = "$method"; if (isset($this->payment->cardToken)) $payment->token = $this->payment->cardToken; $payment->payer = array( "email" => $this->payment->email, "first_name" => $this->firstName, "last_name" => $this->lastName, "identification" => array( "type" => $this->docType, "number" => $this->payment->doc_number ) ); $payment->save();

Estou testando via PostMan e confirmo que todos os dados estão chegando corretamente em $this->payment

andreagostinho-meli commented 2 years ago

Boa tarde, Rodolfo! Também testei aqui e ocorreu esse mesmo problema. Estou em contato com o pessoal responsável pelas APIs internas do Mercado Pago para verificar o que pode estar acontecendo. Quando tiver uma novidade eu aviso por aqui. Muito obrigado pelo relato!

andreagostinho-meli commented 2 years ago

@rodolfosillva bom dia! Poderia testar novamente esse fluxo? Hoje fiz um teste aqui e para mim está normalizado, a geração do QR Code voltou a funcionar.

rodolfosillva commented 2 years ago

Funcionou! Obrigado!

On Tue, Dec 7, 2021 at 9:44 AM André @.***> wrote:

@rodolfosillva https://github.com/rodolfosillva bom dia! Poderia testar novamente esse fluxo? Hoje fiz um teste aqui e para mim está normalizado, a geração do QR Code voltou a funcionar.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mercadopago/pix-payment-sample-php/issues/2#issuecomment-987892418, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBFZLKKUJSUZJHP7AOVTSLUPX6UTANCNFSM5JOX7U3A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

-- Atenciosamente,

Rodolfo Silva Claro 61 99124-6228 (Whatsapp) OI 61 98485-1111

andreagostinho-meli commented 2 years ago

Legal! nós que agradecemos!