It's a simple working demonstration of generation of PIX QR Code from Gerencianet.
Gerencianet has amazing SDKs for many languages that makes it easier to make the integrations, but Rust is not one of them.
This app is supposed to be the simplest implementation of some of their endpoints for PIX QR Code generation, to be used as basis for anyone who is looking to integrate their Rust apps with Gerencianet 🙂
- Clone or download the repository.
- Gerencianet requires a certificate to be sent in every HTTP request, download your certificates from their platform.
- Put the downloaded certificate files (
homologacao-xx.p12
,producao-xx.p12
) in thecertificates
folder in the project's root folder. - Rename the file
development.yaml.example
todevelopment.yaml
. - Open it and change the
credentials
information:client_id
,client_secret
,certificado_pix
. - That's it! You can then open the terminal and type
cargo run
. If everything goes alright, the qrcode image will be saved asqrcode.png
in the root folder.