C# request.Params HELP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SpecialKay
    New Member
    • Mar 2008
    • 109

    C# request.Params HELP

    I need help!
    my page is being called from a third party. Using a log program i have the URL to my website:
    .... orderConfirmati on.aspx?TOFUPay mentOrderID%3dT EST004123 (URI Encoded)

    my problem is that when i do a request.params["TOFUPaymentOrd erID"] i get nothing when the request came from the third party. If i copy paste the URL into my browser. i get the Param.

    I need some ideas.
    thanks
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    Set a breakpoint at that page.
    Have the other website make the request to you.
    At the breakpoint you can examine all the contents of the Params collection to see what is in there?

    Comment

    • SpecialKay
      New Member
      • Mar 2008
      • 109

      #3
      already done that, i have estabilished that my param is not getting sent back. I need to know why.

      The way that it is working is with paypal, the user starts on my site, finishes everything and gets ready to pay. Gets sent to paypal with a list of variables. One of the variables is a "Return_URL " witch is

      = ... orderConfirmati on.aspx?TOFUPay mentOrderID%3dT EST004126

      paypal directs back to the proper page, only after the param i gave then to send back to me is gone.

      i have tried, Url encoded and Not encoded. neither work.

      This is the url that my page gets instead:

      orderConfirmati on.aspx?merchan t_return_link=R eturn+to+Trans. Cont

      Comment

      • Plater
        Recognized Expert Expert
        • Apr 2007
        • 7872

        #4
        Perhaps Return_URL is not the exact parameter paypal wants and assumes a default return value?

        Comment

        • SpecialKay
          New Member
          • Mar 2008
          • 109

          #5
          impossible, otherwise, how would they get back to my page? there is no way that paypal would have my page set as there default return page. Im 100% sure that they are using the return_url variable to get back to me. I have a feeling that my variable is getting over written, maybe by the GET. Im going to look into trying to tell paypal to POST me, rather then GET

          Comment

          • SpecialKay
            New Member
            • Mar 2008
            • 109

            #6
            Solved, paypal was using the GET method, had it switched to POST and worked.

            Comment

            Working...