pix-payload icon indicating copy to clipboard operation
pix-payload copied to clipboard

Error reading QRCode

Open filipeleonelbatista opened this issue 2 years ago • 1 comments

I use this informations to create my pix code with value provided by on input.


const QRCode = payload({
      name: "FILIPE DE LEONEL BATISTA", 
      key: "f1bfe5be-67eb-42ad-8928-f71e02e1c99b",
      amount: comparativeValue, // 123.45
      city: "SAO PAULO", 
      transactionId: "PAGAMENTO PELO LINK",
    });

Generate the code propertly, but when i go to my bank's app, ive got a message that this code is invalid.

Tested in Itaú App and Nubank App

image

filipeleonelbatista avatar Nov 14 '23 13:11 filipeleonelbatista

Por padrão do BACEN, os caracteres aceitos para o transactionId são: A-Z, a-z, 0-9.

Ou seja, o problema é o espaço entre as palavras no parâmetro transactionId. Remova os espaços, e irá funcionar 🙂

araujovicthor avatar Apr 06 '24 17:04 araujovicthor