renatofrota / pix-pendencias

Repositório com lista de pendências e falhas de implementação da API e de outros procedimentos relativos a operação do Pix
63 stars 0 forks source link

Não aceita valores inteiros sem os centavos (com ou sem separador) #1

Open renatofrota opened 3 years ago

renatofrota commented 3 years ago

As instituições marcadas nessa issue, no momento, não lêem QR Codes com as seguintes características:

Documentação

Manual de padrões de iniciação para Pix

Todos os campos que indicam valores monetários obedecem ao formato do ID 54 da especificação EMV/BR Code para QR Codes. O separador decimal é o caractere ponto. Não é aplicável utilizar separador de milhar. Exemplos de valores aderentes ao padrão:“0.00”, “1.00”, “123.99”, “123456789.23”.

EMV-MPM

4.7.4 Transaction Amount (ID "54") 4.7.4.1 If present, the Transaction Amount shall be different from zero, shall only include (numeric) digits "0" to "9" and may contain a single "." character as the decimal mark. When the amount includes decimals, the "." character shall be used to separate the decimals from the integer value and the "." character may be present even if there are no decimals.

The number of digits after the decimal mark should align with the currency exponent associated to the currency code defined in [ISO 4217].

The above describes the only acceptable format for the Transaction Amount. It cannot contain any other characters (for instance, no space character can be used to separate thousands).

The following are examples of valid Transaction Amounts: "98.73", "98" and "98.". The following are NOT valid Transaction Amounts: "98,73" and "3 705".

Testes

10

image

00020126700014br.gov.bcb.pix0136403f6c37-bb1d-48aa-a61c-0f6a205764d80208[Pix.ae]5204000053039865402105802BR5903Pix6003Pix6304ECF4

10.

image

00020126700014br.gov.bcb.pix0136403f6c37-bb1d-48aa-a61c-0f6a205764d80208[Pix.ae]520400005303986540310.5802BR5903Pix6003Pix63049651

Lidos com sucesso nos apps do Itaú e NuBank.

rubenskuhl commented 3 years ago

RecargaPay verificado com problemas com valor "1.0" que ele não reconhece como R$1.