Skip to content

A simple working app demonstrating the generation of PIX QR Code from Gerencianet.

Notifications You must be signed in to change notification settings

alfredomtx/pix-qrcode-gerencianet-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦀 What is this project?

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 🙂

🤔 How to use it:

  1. Clone or download the repository.
  2. Gerencianet requires a certificate to be sent in every HTTP request, download your certificates from their platform.
  3. Put the downloaded certificate files (homologacao-xx.p12, producao-xx.p12) in the certificates folder in the project's root folder.
  4. Rename the file development.yaml.example to development.yaml.
  5. Open it and change the credentials information: client_id, client_secret, certificado_pix.
  6. That's it! You can then open the terminal and type cargo run. If everything goes alright, the qrcode image will be saved as qrcode.png in the root folder.

About

A simple working app demonstrating the generation of PIX QR Code from Gerencianet.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages