Skip to content

Instantly share code, notes, and snippets.

@matheusb-comp
Created July 17, 2024 17:04
Show Gist options
  • Save matheusb-comp/1efa205b3c0ffd7af1e8ce63a10e02dc to your computer and use it in GitHub Desktop.
Save matheusb-comp/1efa205b3c0ffd7af1e8ce63a10e02dc to your computer and use it in GitHub Desktop.
Exemplos de formato PIX

Formatos PIX

Exemplos da string PIX (geralmente representada por um QR Code), identificando os campos.

Cada campo tem o formato <ID> <tamanho> <valor>.

Mais detalhes no Manual de Padrões.

PIX Estático (seção 6.1)

00 02 01 // Payload format (fixo)
26 36 // Merchant account information
    00 14 BR.GOV.BCB.PIX // GUI (fixo)
    01 14 +5511943214321 // Chave (phone)
52 04 0000 // Merchant category guide (vazio)
53 03 986 // Transaction currency (BRL)
54 05 66.66 // Transaction amount (BRL)
58 02 BR // Country code (fixo)
59 07 EMPRESA // Merchant name
60 08 BRASILIA // Merchant city
62 08 // Aditional data field template
    05 03 *** // Transaction ID (txid)
63 04 170E // CRC-16 (CCITT-FALSE)

PIX Dinâmico (seção 6.2)

00 02 01 // Payload format (fixo)
01 02 12 // Point of initiation method (fixo)
26 77 // Merchant account information
    00 14 BR.GOV.BCB.PIX // GUI (fixo)
    25 55 pix.example.com/qr/93598be0-1bd0-4997-8318-81776a1d8a99 // URL
52 04 0000 // Merchant category guide (vazio)
53 03 986 // Transaction currency (BRL)
58 02 BR // Country code (fixo)
59 07 EMPRESA // Merchant name
60 09 SAO PAULO // Merchant city
62 07 // Aditional data field template
    05 03 *** // Reference label
63 04 EEAB // CRC-16 (CCITT-FALSE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment