• 0
Sign in to follow this  
Rique Carioca

Confirmação de Cartão Redecard

Question

Estou com problemas nesse script ele parou de funcionar de uma hora para outra, alguém pode me ajudar ?

Este script utiliza uma dll da empresa w3socket.

confirma.asp

'3ª Etapa - Confirmação da Transação
    Dim params, Socket, filiacao, iErr
    
    filiacao="38390000"
    
    params = ""
    params = params & "DATA=" & data
    params = params & "&TRANSACAO=203"
    params = params & "&TRANSORIG=" & transorig
    params = params & "&PARCELAS=" & parcelas
    params = params & "&FILIACAO=" & filiacao
    params = params & "&DISTRIBUIDOR="
    params = params & "&TOTAL=" & valor
    params = params & "&NUMPEDIDO=" & numpedido
    params = params & "&NUMAUTOR=" & numautor
    params = params & "&NUMCV=" & numcv
    params = params & "&NUMSQN=" & numsqn
    params = params & "&PAX1="
    
    Set Socket = Server.CreateObject("Socket.TCP")
    Socket.DoTelnetemulation = true
    
    Socket.host = "ecommerce.redecard.com.br:443"

    Socket.open()
    iErr = Err.Number
    If iErr <> 0 Then 
        Response.Write " TESTE REALIZADO COM SUCESSO. STATUS: PROBLEMA "  & VBCRLF
    End If 
    
    Socket.sendLine("GET /pos_virtual/confirma.asp?" & Params & " HTTP/1.0")
    Socket.sendLine(vbNewLine)
    Socket.sendLine(vbNewLine)
    Socket.waitfordisconnect()

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

pergunta básica - O componente tá instalado ??? qual a mensagem de erro???

Share this post


Link to post
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
Answer this question...

×   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.

Sign in to follow this