Skip to content

Commit

Permalink
Added: API Pix endpoints
Browse files Browse the repository at this point in the history
Update Qrcode image path in pix_generate_qrcode.rb
  • Loading branch information
jessica-gavaGN authored Jul 1, 2021
1 parent e92bd2b commit d6b3d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/pix/location/pix_generate_qrcode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@

data = response['imagemQrcode']
image_data = Base64.decode64(data['data:image/png;base64,'.length .. -1])
new_file=File.new("./../../../imgQrcode/qrCodeImage.png", 'wb') #salva a imagem do qrcode na pasta imgQrcode no diretório raiz
new_file.write(image_data)
new_file=File.new("../../../qrCodeImage.png", 'wb') #salva a imagem do qrcode no diretório raiz
new_file.write(image_data)

0 comments on commit d6b3d7c

Please sign in to comment.