Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infoAdicional does not appear on bank statement #16

Closed
Iazzetta opened this issue Oct 4, 2022 · 4 comments
Closed

infoAdicional does not appear on bank statement #16

Iazzetta opened this issue Oct 4, 2022 · 4 comments

Comments

@Iazzetta
Copy link

Iazzetta commented Oct 4, 2022

  • I'm submitting a ...
    [ X ] bug report
    [ ] feature request
    [ ] question about the decisions made in the repository
    [ ] question about how to use this project

  • Summary

I'm having trouble generating a pix key (brcode) with additional information (message).
I have another project that gets the message sent on the PIX to relate to my bank.
When I do a pix manually, sending a message, my script finds the message.
But when I use pix-utils passing an infoAdditional, when sending the PIX the message appears,
but when I see the extract there is no message.

Would it be something outdated in the lib, a bug or is the function to add a message not implemented?
infoAdditional is the custom message right?

Thanks

@thalesog
Copy link
Owner

thalesog commented Oct 4, 2022

Can you provide an exemple where this bug happens?

@Iazzetta
Copy link
Author

Iazzetta commented Oct 5, 2022

I'm using pynubank to access my account and read custom messages to validate pix.

I create a pix brcode with generated code to validate:

const verify_code = `Order ${makeid(6)}`
const pix = createStaticPix({
          merchantName: 'Company',
          merchantCity: 'City',
          pixKey: 'xxxxx',
          infoAdicional: verify_code,
          transactionAmount: 0.01,
          isTransactionUnique: true
}).throwIfError();
const brCode = pix.toBRCode();

The pix is generated and works fine. But When I check the messages from pix in my nubank account I can't find the message body (I guess is the infoAdicional option). But when I do a manually pix and set custom message works fine. I don't know what is the problem.

@thalesog
Copy link
Owner

thalesog commented Oct 9, 2022

That's the expected behavior.
The infoAdicional field its like an "question" to the payer, so he has to manually fill the "Description" field to you receive in your bank statement.

@thalesog
Copy link
Owner

Closing this issue as solved. Please feel free to reopen if you have any further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants