3 Replies Latest reply on Aug 14, 2007 8:22 AM by kcell

    Problem with HTTPService

      Hi there, I have developed an application that has a Buy Now Button to the PayPal website. I used the HTTPService to verify the purchased at PayPal:

      <mx:HTTPService id="paymentRequest" url=" http://www.paypal.com/cgi-bin/webscr" useProxy="false"
      method="POST" resultFormat="text" result="getResultOk(1,event)" fault="getResultOk(0,event)"
      <mx:request xmlns="">

      When this application web site is redirected back from the PayPal shopping cart, a tx number is read and the application calls paymentRequest.send() to do the verification process but then i got this error:

      Error sending data!!
      [FaultEvent fault=[RPC Fault faultString="Security error accessing url"
      faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
      type="fault" bubbles=false cancelable=true eventPhase=2]

      However, if i hard coded the tx number and execute the application locally, it works fine it is sending to PayPal and i do get either the "SUCCESS" or "FAIL" message back... So i wonder if anyone can please help me here? Why when this application is put on web server and being accessed from the server's url the HTTPService call is not sending??

      Many thanks.