
[PixHandler] Gerando pagamento PIX
[PaymentAPI] DEBUG - Credenciais EFI:
[PaymentAPI] CLIENT_ID: Client_Id_...28d4 (50 caracteres)
[PaymentAPI] CLIENT_SECRET: Client_Sec...ea5c (54 caracteres)
[PaymentAPI] CLIENT_ID length: 50
[PaymentAPI] CLIENT_SECRET length: 54
[PaymentAPI] Verificando certificado em: ./certified/certificate-prod.p12
[PaymentAPI] Inicializando cliente Efí: {
sandbox: 'desativado',
clientId: 'Client_Id_...',
certificatePath: './certified/certificate-prod.p12'
}
[PaymentAPI] Cliente Efí inicializado com sucesso
[PaymentAPI] Gerando pagamento PIX: {
valor: '0.01',
descricao: 'Compra de 100 Robux - Ruby Verse',
correlationId: 'TICKET_1354463581768519831'
}
[PaymentAPI] Payload da cobrança: {"calendario":{"expiracao":3600},"valor":{"original":"0.01"},"solicitacaoPagador":"Compra de 100 Robux - Ruby Verse","infoAdicionais":[{"nome":"CorrelationID","valor":"TICKET_1354463581768519831"}]}
[PaymentAPI] Erro ao gerar pagamento PIX: {
nome: 'json_invalido',
mensagem: 'Valores ou tipos de campo inválidos',
erros: [
{
chave: 'required',
caminho: '.body',
mensagem: 'deve ter a propriedade obrigatória chave'
}
]
}
[PIX] Erro: Error: Falha ao gerar pagamento PIX: undefined
at PaymentAPI.generatePixPayment (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\utils\PaymentAPI.js:209:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PixHandler.handlePixGeneration (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\services\ticket\pixHandler.js:32:33)
at async PixHandler.handleTermsAcceptance (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\services\ticket\pixHandler.js:173:13)
at async accept-terms (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\Events\ticket\ticketPurchaseHandler.js:66:9)
at async module.exports.run (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\Events\ticket\ticketPurchaseHandler.js:96:9)
[PaymentAPI] DEBUG - Credenciais EFI:
[PaymentAPI] CLIENT_ID: Client_Id_...28d4 (50 caracteres)
[PaymentAPI] CLIENT_SECRET: Client_Sec...ea5c (54 caracteres)
[PaymentAPI] CLIENT_ID length: 50
[PaymentAPI] CLIENT_SECRET length: 54
[PaymentAPI] Verificando certificado em: ./certified/certificate-prod.p12
[PaymentAPI] Inicializando cliente Efí: {
sandbox: 'desativado',
clientId: 'Client_Id_...',
certificatePath: './certified/certificate-prod.p12'
}
[PaymentAPI] Cliente Efí inicializado com sucesso
[PaymentAPI] Gerando pagamento PIX: {
valor: '0.01',
descricao: 'Compra de 100 Robux - Ruby Verse',
correlationId: 'TICKET_1354463581768519831'
}
[PaymentAPI] Payload da cobrança: {"calendario":{"expiracao":3600},"valor":{"original":"0.01"},"solicitacaoPagador":"Compra de 100 Robux - Ruby Verse","infoAdicionais":[{"nome":"CorrelationID","valor":"TICKET_1354463581768519831"}]}
[PaymentAPI] Erro ao gerar pagamento PIX: {
nome: 'json_invalido',
mensagem: 'Valores ou tipos de campo inválidos',
erros: [
{
chave: 'required',
caminho: '.body',
mensagem: 'deve ter a propriedade obrigatória chave'
}
]
}
[PIX] Erro: Error: Falha ao gerar pagamento PIX: undefined
at PaymentAPI.generatePixPayment (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\utils\PaymentAPI.js:209:19)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async PixHandler.handlePixGeneration (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\services\ticket\pixHandler.js:32:33)
at async PixHandler.handleTermsAcceptance (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\services\ticket\pixHandler.js:173:13)
at async accept-terms (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\Events\ticket\ticketPurchaseHandler.js:66:9)
at async module.exports.run (C:\Users\gabri\Desktop\Projects\Learning\rubyVerseOficial\src\Events\ticket\ticketPurchaseHandler.js:96:9)