Results 1 to 2 of 2

Thread: sending httpwebrequest to payment gateway

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    sending httpwebrequest to payment gateway

    Hi all

    ok my registration page for ecommerce is the final page before going to credit card gateway

    The customer fills in all there details on my site and i then pass them to the gateway

    i would like to do this in code if possible and will httpwebrequest handle what i want to do

    VB Code:
    1. Dim myRequest As HttpWebRequest = CType(HttpWebRequest.Create("http://www.creditcardgateway.com/"), HttpWebRequest)
    2.             myRequest.AllowAutoRedirect = False
    3.             myRequest.Method = "POST"
    4.             myRequest.ContentType = "application/x-www-form-urlencoded"
    5.  
    6. 'Create post stream
    7.             Dim RequestStream As Stream = myRequest.GetRequestStream()
    8.             Dim SomeBytes() As Byte = Encoding.UTF8.GetBytes(strToSend)
    9.  
    10.             RequestStream.Write(SomeBytes, 0, SomeBytes.Length)
    11.             RequestStream.Close()
    12.  
    13.             'Send request and get response
    14.             Dim myResponse As HttpWebResponse = CType(myRequest.GetResponse(), HttpWebResponse)

    but the real question is how to take the user to the page once ive posted the stuff

    ????
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539
    bump
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width