bolodissenoura / pixmeacoffee

https://pixmeacoffee.vercel.app
MIT License
70 stars 13 forks source link

[Bug report] - Invalid QR Code Generation for Numeric PIX Keys #21

Closed maikonalexandre closed 1 week ago

maikonalexandre commented 1 month ago

Bug Report: Invalid QR Code Generation for Numeric PIX Keys

Description

The application is generating an invalid QR code when the PIX key is a number. This issue may be caused by the presence of special characters like the + symbol in the input string.

Steps to Reproduce

  1. Use the following input for generating a QR code:
    00020126360014BR.GOV.BCB.PIX0114+55389917570155204000053039865802BR5925Maikon Alexandre dos Sant6009SAO PAULO62140510dzZ5ZQGqNr63048673
  2. The generated QR code has the following output:
    6360014BR.GOV.BCB.PIX0114 55389917570155204000053039865802BR5925Maikon Alexandre dos Sant6009SAO PAULO62140510dzZ5ZQGqNr63048673

Expected Behavior

The QR code should include the special characters in the PIX key and generate the correct output with no missing or altered symbols.

Actual Behavior

The special character + is either removed or replaced by a space, causing an invalid QR code to be generated.