0 Replies Latest reply on Sep 14, 2009 10:17 PM by zeeb44

    paypal viewcart button help?!!? AS3!


      viewcart_btn.addEventListener(MouseEvent.CLICK, cartClick);

      function cartClick (event:MouseEvent):void
      var url:String = 'https://www.paypal.com/cgi-bin/webscr';
      var request:URLRequest = new URLRequest(url);
      var paypal:URLVariables = new URLVariables();

      request.data = paypal;
      request.method = URLRequestMethod.POST;
      navigateToURL(request, '_blank');

      I have this code and im trying to make it just view cart, but when i do a paypal window pops up saying
      We have detected a problem with this shopping cart. If the problem persists, please contact the merchant.

      any help?