Results 1 to 3 of 3

Thread: Payment Gateway in Silverlight

  1. #1

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    829

    Payment Gateway in Silverlight

    Good Day All

    I am intergrating a Credit card Payment from a third party gateway. They dont expose web methods, so we have to use their page to process the CC. So i used a Telerik HtmlContainer to host their page and now i want to do a post and get a response URL that will contain the results that will tell me if the payment went through.

    https://www.vcs.co.za/vvonline/ccpay...3=Test%20ccPay


    MOre info https://www.vcs.co.za/

    Have anyone does this before ?

    I have attached the documentation


    Thanks
    Attached Files Attached Files
    Last edited by vuyiswamb; May 15th, 2011 at 07:46 AM.

  2. #2
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: Payment Gateway in Silverlight

    Here's a nice blog on making GET and POST requests: http://weblogs.asp.net/albertpascual...t-request.aspx

    It's a cross-domain call so you'll need to make sure their clientaccesspolicy.xml file is set up to allow http-request-headers.

  3. #3

    Thread Starter
    Fanatic Member vuyiswamb's Avatar
    Join Date
    Jan 2007
    Location
    South Africa
    Posts
    829

    Re: Payment Gateway in Silverlight

    Thank you very much for your response. i have tried this

    Code:
      WebClient svc = new WebClient();
                //string clickThroughXml = this.BuildClickThroughXml();
                svc.UploadStringCompleted += new UploadStringCompletedEventHandler(svc_UploadStringCompleted);
                svc.UploadStringAsync(new Uri("https://www.vcs.co.za/vvonline/ccpay.asp?p1=FP99&p3=Test%20ccPay"), "Post", "AT");
    and

    Code:
     void svc_UploadStringCompleted(object sender, UploadStringCompletedEventArgs e)
        {
            String Response = e.Result;
        }
    in my Response String i get a full HTML mark up, but i want to the URl. So normally what happens is that if i send(Post) the URL it gives me another URL with some values in the Query string.

    Thanks

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