<%
'Prazo de entrega conforme a modalida selecionada pelo comprador
opcao_frete = Pega_DadoBanco("Pedidos","tipo_frete","codigo_pedido",session("codigo_pedido"))
'Forma de entrega SEDEX
If opcao_frete = "SEDEX" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaSedex")
'Forma de entrega PAC
ElseIf opcao_frete = "PAC" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaPAC")
'Forma de entrega E-SEDEX
ElseIf opcao_frete = "E-SEDEX" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaESedex")
'Forma de entrega DIRECT EXPRESS
ElseIf opcao_frete = "DIRECT EXPRESS" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaDirectExpress")
'Forma de entrega TRANSPORTADORA A COBRAR
ElseIf opcao_frete = "TRANSPORTADORA A COBRAR" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaTransportadora")
'Forma de entrega FEDEX
ElseIf opcao_frete = "FEDEX" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaFedex")
'Forma de entrega RETIRAR NA LOJA
ElseIf opcao_frete = "RETIRAR NA LOJA" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaRetirarNaLoja")
'Forma de entrega FRETE PERSONALIZADO
ElseIf opcao_frete = UCASE(pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","NomeFretePersonalizado")) Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaFretePersonalizado")
ElseIf opcao_frete = "PAC" Then
msgPrazoEntrega = pegaValorAtrib(Application("XMLArquivoConfiguracao"),"dados/configuracao_dados","PrazoEntregaFretePAC")
End If
%>
| <%=Application("RecTxtNumPedido")%>: <%=session("codigo_pedido")%> |
| <%=Application("RecTxtIPUsado")%>: <%=request.ServerVariables("REMOTE_ADDR")%> |
| <%=Application("RecTxtPrazoEntrega")%>: <%= msgPrazoEntrega%> |
| <%=Application("RecTxtFormaEntrega")%>: <%=opcao_frete%> |
|
<%
' *********************** BOLETO **********************
If Session("forma_pagamento") = "Boleto" Then
%>
<%=Application("RecTxtTiInstrPagto")%>:
<%
Call Recibo(Conexao,Session("forma_pagamento"),compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** AMEX **********************
If Request("TxnResponseCode") <> "" Then
MerchTxnRef = Request("MerchTxnRef")
OrderInfo = Request("OrderInfo")
' Caso a referência da transação seja nula, resgata do campo livre
If MerchTxnRef = "" Or MerchTxnRef = "No Value Returned" Then
MerchTxnRef = OrderInfo
End If
'Ativa a sessão para o código do pedido
Session("codigo_pedido") = MerchTxnRef
Call Recibo(Conexao,"Amex",compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** VISANET **********************
If Request("tid") <> "" Then
' Exibe as váriaveis de retorno
Response.write Application("RecTxtCodigoTrans") & ": " & session("TID") & " "
Response.write Application("RecTxtCodigoResposta") & ": " & session("LR") & " "
Response.write Application("RecTxtCodigoAutorizacao") & ": " & session("ARP") & " "
If session("ARS") <> "" Then
Response.write Application("RecTxtMsgTransacao") & ": " & session("ARS") & " "
End If
If session("AUTHENT") <> "" Then
Response.write Application("RecTxtTipoAutent") & ": " & session("AUTHENT") & " "
End If
Response.write " "
End If
' *********************** REDECARD **********************
If Request("NR_CARTAO") <> "" Then
' ************** Em caso da transação já ter sido confirmada ***************
If (status = 1) Then
Response.write Application("RecTxtMsgTransJaConfirmada")
End If
' ************************** Monta o cupom *********************************
If varLang = "en_UK" Or varLang = "en_US" Then
LANGUAGE = "E" 'Inglês
Else
LANGUAGE = "" 'Português
End If
URLCupom = "https://ecommerce.redecard.com.br/pos_virtual/cupom.asp?DATA=" & request("DATA") & "&TRANSACAO=201&NUMAUTOR=" & request("NUMAUTOR") & "&NUMCV=" & request("NUMCV")
If LANGUAGE <> "" Then
URLCupom = URLCupom & "&LANGUAGE=" & LANGUAGE
End If
%>
<%
End If
' *********************** ITAU **********************
' **** link para a conexao com o Itaú
If Request("codEmp") <> "" And Request("tipPag") <> "" Then
'Ativa a sessão para o código do pedido
Session("codigo_pedido") = Request("pedido")
'Atualiza alguns dados restantes do final da transação Itaú no banco de dados
Call GravaTransacaoFinalItau(Session("codigo_pedido"),Request("tipPag"))
' Exibe as váriaveis de retorno
Response.write Application("RecTxtFormaPagto") & ": " & ITAU_TipPag(Request("tipPag")) & "
"
End If
' *********************** BANCO DO BRASIL **********************
If Session("forma_pagamento") = "Brasil" Then
' Exibe a forma de pagamento escolhida
Response.write Application("RecTxtFormaPagto") & ": " & BB_TipPag(Request("tpPagamento")) & "
"
End If
' *********************** UNIBANCO **********************
If Session("forma_pagamento") = "Unibanco" Then
Call Recibo(Conexao,Session("forma_pagamento"),compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** DEPOSITO BANCARIO **********************
If Session("forma_pagamento") = "Deposito" Then
Call Recibo(Conexao,Session("forma_pagamento"),compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** COBREBEM ECOMMERCE **********************
If Session("forma_pagamento") = "CobreBem" Then
Call Recibo(Conexao,Session("forma_pagamento"),compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** BRADESCO **********************
If Request("cod") = "0" Then
Call Recibo(Conexao,"Bradesco",compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** ABNCDC **********************
If Request("RET01") <> "" Then
Call Recibo(Conexao,"ABNCDC",compra,cod_erro,msg_erro,identificacao_pedido)
End If
' *********************** PAGAMENTO CERTO **********************
If Request("tdi") <> "" Then
' Exibe as váriaveis de retorno
Response.write "" & Application("RecTxtCodigoTrans") & ": " & identificacao_pedido & " "
Response.write "" & Application("RecTxtMsgTransacao") & ": " & Pega_DadoBanco("Transacao_PagamentoCerto","msgRetornoPagamento","idTransacao","'"&Request("tdi")&"'")
Response.write " "
If Session("URLBoleto") <> "" Then
' URL para geração do boleto
idTransacao = Pega_DadoBanco("Transacao_PagamentoCerto","idTransacao","codigo_pedido",Session("codigo_pedido"))
str_Boleto = str_Boleto & "tdi=" & idTransacao
URLBoleto = Application("URLLocaWebBoletoPagamentoCerto") & "?" & str_Boleto
Response.write "" & Application("RecTxtTiInstrPagto") & ": " & Application("FestrTxtParaImprimir") & ""& Application("FestrTxtCliqueAqui") & " (" & Application("FestrTxtUtilizeImpressora") & "). "
End If
End If
' *********************** PAGGO **********************
If Session("forma_pagamento") = "Paggo" Then
' Exibe as váriaveis de retorno
Response.write "" & Application("RecTxtCodigoResposta") & ": " & Pega_DadoBanco("Transacao_Paggo","codRetornoTransacao","codigo_pedido",Session("codigo_pedido")) & " "
Response.write "" & Application("RecTxtMsgTransacao") & ": " & Pega_DadoBanco("Transacao_Paggo","msgRetornoTransacao","codigo_pedido",Session("codigo_pedido")) & " "
Response.write "NSU PAGGO: " & Pega_DadoBanco("Transacao_Paggo","nsuPaggo","codigo_pedido",Session("codigo_pedido"))
End If
%>
Envie sua logomarca
|
<%
' Resgata dados do Usuário nesta transação
Call Session_Usuario_Transacao(Conexao,Session("codigo_pedido"))
%>
|