Jump to content
Fivewin Brasil

Pagamento com cartão


crisvam

Recommended Posts

Colegas,

 

Alguem que já resolveu o pagamento com cartão na NFe/;NFCe versão 4.0 poderia dá uma dica como fazer isto? Quando é pagamento a vista fica fácil mas qdo é com cartão estou com problemas não consigo gerar o XML.

Alguem poderia me dar uma mão nisso.

Eu uso a classe do Gilmer com flexdocs

 

Gato a todos pela aenção.

Link to comment
Share on other sites

Modificações:

METHOD StruCartao(oItem) CLASS TVoNFe2G
   local axArray := {}
   aadd(axArray, {"tpIntegra", TVoNFeItem():New("N", 0, 1, ,,,oItem:tpIntegra_Opc )  }  )
   aadd(axArray, {"CNPJ"  , TVoNFeItem():New("C", 0, 1, 14,,,oItem:CNPJ_Opc )  }  )
   aadd(axArray, {"tBand" , TVoNFeItem():New("C", 0, 1, 02,,,oItem:tBand_Opc )  }  )
   aadd(axArray, {"cAut"  , TVoNFeItem():New("C", 0, 1 ,20,,,oItem:cAut_Opc )  }  )

return( axArray )
 

CLASS TVoNFePag
   DATA tPag
   DATA vPag
   DATA tpIntegra_Opc
   DATA CNPJ_Opc
   DATA tBand_Opc
   DAtA cAut_Opc

ENDCLASS
 

 

 

Link to comment
Share on other sites

Gilmer

Na Flexdocs está diferente do que vc esta postando ai

Existe um indPag_Opc sendo que não obrigatório

 

http://www.flexdocs.com.br/guianfe/gerarNFe.pag400.detPag.html

 

Não deveria ser assim ?

CLASS TVoNFePag

   Data IndPag
   DATA tPag
   DATA vPag
   DATA tpIntegra_Opc
   DATA CNPJ_Opc
   DATA tBand_Opc
   DAtA cAut_Opc
   Data vTroco


ENDCLASS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...