GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • All gists
  • Back to GitHub
  • Sign in
  • Sign up
  • Code
  • Revisions 1
  • Stars 1
  • Terms
  • Privacy
  • Security
  • Status
  • Community
  • Docs
  • Contact

This view

  • Original page
  • New address

GeezerVison is showing gist.github.com — Alteração QrCode 1 para 2

Instantly share code, notes, and snippets.

@Samuel-Oliveira

Samuel-Oliveira/gist:72f88a91c72465e038dbecd065fe1e12

Created August 23, 2018 18:57
Show Gist options
  • Download ZIP
  • Star 1 (1) You must be signed in to star a gist
  • Fork 0 (0) You must be signed in to fork a gist
  • Clone this repository at <script src="https://gist.github.com/Samuel-Oliveira/72f88a91c72465e038dbecd065fe1e12.js"></script>
  • Save Samuel-Oliveira/72f88a91c72465e038dbecd065fe1e12 to your computer and use it in GitHub Desktop.
Clone this repository at <script src="https://gist.github.com/Samuel-Oliveira/72f88a91c72465e038dbecd065fe1e12.js"></script>
Save Samuel-Oliveira/72f88a91c72465e038dbecd065fe1e12 to your computer and use it in GitHub Desktop.
Download ZIP
Alteração QrCode 1 para 2
Raw
gistfile1.txt
Apartir de 01/10/2018 Somente será aceito QrCode versão 2. Então apartir da versão 4.00.7 Somente trabalharemos com esta versão.
Cpomo essa modificação, teremos um Qrcode diferente para Envio Online e Envio OffLIne.
Segua abaixo os Exemplos para cada Caso:
//QRCODE
String qrCode = NFCeUtil.getCodeQRCode(
infNFe.getId().substring(3),
config.getAmbiente(),
idToken,
csc,
WebServiceUtil.getUrl(config,ConstantesUtil.NFCE, ConstantesUtil.SERVICOS.URL_QRCODE));
//QRCODE OFFLine
String qrCode = NFCeUtil.getCodeQRCodeContingencia(
infNFe.getId().substring(3),
config.getAmbiente(),
ide.getDhEmi(),
total.getICMSTot().getVNF(),
Base64.getEncoder().encodeToString(enviNFe.getNFe().get(0).getSignature().getSignedInfo().getReference().getDigestValue()),
idToken,
csc,
WebServiceUtil.getUrl(config,ConstantesUtil.NFCE, ConstantesUtil.SERVICOS.URL_QRCODE));
@resplandes

resplandes commented Sep 11, 2018

Copy link
Copy Markdown

Show

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@resplandes

resplandes commented Sep 11, 2018

Copy link
Copy Markdown

Ao meu ver Samuel ficou 100% mais simplificado, perfeito amigão, obrigado!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.