title: Paypal Express checkout not working?
body: <p>I have been using Paypal Express checkout for payment in my application.Still its in sandbox mode. It was working fine without any problem till last week.But from this week, the transaction ID not generating.</p>
  
  <p>First of all, I will explain my full flow of transaction.</p>
  
  <p>1.When I checkout, I will call the php file in my server with customer detail and products details.</p>
  
  <p>2.Then this php file will call Paypal API and generate a token and send it back to my application.</p>
  
  <p>3.With transaction ID and device token (generated by libPayPalEC.a library) and loading the sandbox paypal URL with these two parameters.Below is the way I am loading URL in webview if I successfully get token from my server.</p>
  
  <pre><code>NSString *urlAddress = [NSString  stringWithFormat:@"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout-mobile&amp;useraction=commit&amp;drt=%@&amp;token=%@",_deviceToken,_payPalToken]; 
  </code></pre>
  
  <p>4.The webView will be loaded with login page and further transaction is made.</p>
  
  <p>The above process were worked nicely till last week but now its stuck in the second point itself.My php not providing an token.Instead it the response like below.</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html xmlns:ns1="og" lang="en" xmlns="http://www.w3.org/1999/xhtml" ns1:xmlns="http://ogp.me/ns#"&gt;&lt;head&gt;&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  &lt;!--
           Script info: script: merchantpaymentweb, cmd: &amp;#x5f;express&amp;#x2d;checkout, template: xpt&amp;#x2f;Checkout&amp;#x2f;ec&amp;#x2f;Login, date: Jun&amp;#x20;26&amp;#x2c;&amp;#x20;2013&amp;#x20;08&amp;#x3a;06&amp;#x3a;00&amp;#x20;PDT; country: US, language: en_US, xslt server: 
          web version: 104&amp;#x2e;0&amp;#x2d;6660064 branch: 54acf8f793ee3c83461ce755fea6f9b7ceeea381
          content version: &amp;#x2d;
          pexml version: 104&amp;#x2e;0&amp;#x2d;6561375
          page XSL: Checkout/default/en_US/ec/Login.xsl
         hostname : fbS&amp;#x2e;6KL5lvTqGnDaa&amp;#x2d;D3Z7mrkSj1m0cLx4&amp;#x2d;hBxdfN7U
           rlogid : ukDrJAYX6XpzjZWCm13fDfZSMweU30&amp;#x25;2bmKW&amp;#x25;2bO7bgiwIlt8cKrcoR32LdDR4kzkZZIuUQ690k&amp;#x25;2bI7U&amp;#x25;3d&amp;#x5f;13f84f881b6
  --&gt;
  &lt;title&gt;Pay with a PayPal account - PayPal&lt;/title&gt;
  &lt;!--googleoff: all--&gt;
  &lt;meta name="description" content="PayPal is the safer, easier way to pay online without revealing your credit card number."&gt;
  &lt;!--googleon: all--&gt;
  &lt;meta http-equiv="X-UA-Compatible" content="IE=9"&gt;&lt;link media="screen" rel="stylesheet" type="text/css" href="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/css/core/xptdev.css"&gt;&lt;link media="screen" rel="stylesheet" type="text/css" href="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/css/core/global.css"&gt;&lt;link rel="stylesheet" type="text/css" href="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/Checkout/css/checkout.css"&gt;
  &lt;!--[if lte IE 9]&gt;&lt;link media="screen" rel="stylesheet" type="text/css" href="https&amp;#x3a;&amp;#x2f;&amp;#x2f;www&amp;#x2e;sandbox&amp;#x2e;paypal&amp;#x2e;com&amp;#x2f;MERCHANTPAYMENTWEB&amp;#x2d;640&amp;#x2d;20130622&amp;#x2d;1/Checkout/css/ie.css"&gt;&lt;![endif]--&gt;
  &lt;link rel="stylesheet" type="text/css" href="https://www.sandbox.paypal.com/css/sandbox.css"&gt;&lt;style type="text/css" id="antiClickjack"&gt;body{display:none !important;}&lt;/style&gt;&lt;script type="text/javascript"&gt;
                  if (self === top) {
                      var antiClickjack = document.getElementById("antiClickjack");
                      antiClickjack.parentNode.removeChild(antiClickjack);
                  } else {
                      top.location = self.location;
                  }
              &lt;/script&gt;&lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/js/lib/min/global.js"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;PAYPAL.util.lazyLoadRoot = 'https\x3a\x2f\x2fwww\x2esandbox\x2epaypal\x2ecom\x2fMERCHANTPAYMENTWEB\x2d640\x2d20130622\x2d1';&lt;/script&gt;&lt;link rel="shortcut icon" href="https://www.sandbox.paypal.com/en_US/i/icon/pp_favicon_x.ico"&gt;&lt;link rel="apple-touch-icon" href="https://www.sandbox.paypal.com/en_US/i/pui/apple-touch-icon.png"&gt;&lt;/head&gt;&lt;body class="xptSandbox"&gt;&lt;noscript&gt;&lt;style type="text/css"&gt;body{display:block !important;}&lt;/style&gt;&lt;p class="nonjsAlert"&gt;PayPal requires JavaScript for many of its features. To check out, please &lt;a target="blank" href="https://www.sandbox.paypal.com/us/webapps/mpp/preview/how-to-turn-on-javascript?locale.x=en_US"&gt;turn on Javascript in your internet browser&lt;/a&gt;.&lt;/p&gt;&lt;/noscript&gt;&lt;div class="" id="stdpage"&gt;&lt;div id="header"&gt;&lt;h1 class="confidential"&gt;Benchmark&amp;#x20;iPhone&amp;#x27;s&amp;#x20;Test&amp;#x20;Store&lt;/h1&gt;&lt;/div&gt;&lt;hr&gt;&lt;div id="content"&gt;&lt;div id="headline"&gt;&lt;h1 class="accessAid"&gt;Choose a way to pay&lt;/h1&gt;
  &lt;/div&gt;&lt;div id="messageBox"&gt;&lt;/div&gt;&lt;div id="main"&gt;&lt;div class="layout1"&gt;&lt;iframe class="hide" id="yui-history-iframe" src="https://www.sandbox.paypal.com/en_US/i/scr/scr_grayDotRepeatBg_3x1.gif"&gt;&lt;/iframe&gt;&lt;input type="hidden" id="yui-history-field" name="yui-history-field" value=""&gt;&lt;form id="historyForm" method="get" class="noAnimation" action="https://www.sandbox.paypal.com/us/cgi-bin/merchantpaymentweb"&gt;&lt;input type="hidden" name="cmd" value="_flow"&gt;&lt;input id="historyDispatch" type="hidden" name="dispatch" value="50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081988da7a3c03e3ee25661350b6a36dba24a"&gt;&lt;input id="historySession" type="hidden" name="SESSION"&gt;&lt;input type="submit" id="historySubmit" name="historySubmit" value="" class="hide parentSubmit noAnimation"&gt;&lt;input name="auth" type="hidden" value="ARlB87oxQ9J5V1AHb1z0XwiBtbOHOHDRWmiu&amp;#x2e;ySH5Pdx06UHFSnnO&amp;#x2e;ZzwT93TLFLx"&gt;&lt;input name="form_charset" type="hidden" value="UTF&amp;#x2d;8"&gt;&lt;/form&gt;&lt;div class="accessAid" id="swapPanel"&gt;&lt;/div&gt;&lt;div class="accessAid" id="babySlider"&gt;&lt;/div&gt;&lt;form method="post" id="parentForm" name="login_form" action="https://www.sandbox.paypal.com/us/cgi-bin/merchantpaymentweb?dispatch=50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081988da7a3c03e3ee25661350b6a36dba24a" class=""&gt;&lt;input type="hidden" name="cmd" value="_flow"&gt;&lt;input type="hidden" id="myAllTextSubmitID" name="myAllTextSubmitID" value=""&gt;&lt;input type="hidden" id="miniPager" name="miniPager" value=""&gt;&lt;div class="layout2f"&gt;&lt;div class="col first"&gt;&lt;div class="rounded defaultStyles"&gt;&lt;div class="top outer"&gt;&lt;/div&gt;&lt;div class="body outer clearfix"&gt;&lt;div class="rounded child"&gt;&lt;div class="top inner"&gt;&lt;/div&gt;&lt;div class="body clearfix" id="miniCartContent"&gt;&lt;div id="miniCart" class=""&gt;&lt;h3&gt;Your&amp;#x20;order&amp;#x20;summary&lt;/h3&gt;&lt;div class="small head wrap"&gt;Descriptions&lt;span class="amount"&gt;Amount&lt;/span&gt;&lt;/div&gt;&lt;ol class="small wrap items "&gt;&lt;li class="seller1"&gt;&lt;ul&gt;&lt;li id="multiitem1" class="itmdet"&gt;&lt;ul class="item1"&gt;&lt;li class="dark"&gt;&lt;span class="name"&gt;&lt;a class="autoTooltip" href="#name0" title="Test&amp;#x20;Product" id="showname0"&gt;Test&amp;#x20;Product&lt;/a&gt;&lt;/span&gt;&lt;span class="amount"&gt;&amp;#x24;2&amp;#x2e;50&lt;/span&gt;&lt;/li&gt;&lt;li class="secondary"&gt;&lt;span&gt;Item price: &amp;#x24;2&amp;#x2e;50&lt;/span&gt;&lt;/li&gt;&lt;li class="secondary"&gt;Quantity: 1&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="wrap items totals item1"&gt;&lt;ul&gt;&lt;li class="small heavy"&gt;Item total &lt;span class="amount"&gt;&amp;#x24;2&amp;#x2e;50&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="small wrap items totals item1"&gt;&lt;ul&gt;&lt;li class="heavy highlight finalTotal"&gt;&lt;span class="grandTotal amount highlight"&gt;Total &amp;#x24;2&amp;#x2e;50 AUD&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="bottom inner"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="bottom outer"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="col last"&gt;&lt;div class="accessAid" id="panelMask"&gt;&lt;div class="top"&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;div class="body clearfix"&gt;&lt;div&gt;&lt;div id="progressMeter"&gt;&lt;img border="0" src="https://www.sandbox.paypal.com/en_US/i/icon/icon_animated_prog_dkgy_42wx42h.gif" alt="Loading.."&gt;&lt;span class="panelMaskMsg" id="defaultMsg"&gt;Loading ...&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="updateCtry"&gt;Updating country&lt;/span&gt;&lt;span class="panelMaskMsg hide" id="loginMsg"&gt;Authenticating your information&lt;/span&gt;&lt;span class="panelMaskMsg hide" id="loginUpdateMsg"&gt;Logging you in&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="authMsg"&gt;Authenticating your information.&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="authUpdateMsg"&gt;Securing your information.&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="reviewMsg"&gt;Updating your information ...&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="shippingMsg"&gt;Updating your information ...&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="cartMsg"&gt;Updating order total ...&lt;/span&gt;&lt;span class="hide panelMaskMsg" id="processPayment"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="bottom"&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="sliderWrapper"&gt;&lt;div id="parentSlider"&gt;&lt;fieldset id="sliders"&gt;&lt;legend class="accessAid"&gt;Login&lt;/legend&gt;&lt;input type="hidden" id="currentSession" name="currentSession" value="hIeXpvxuBcpEkVcO6ac1zxQzgDbkoJ0yBpSa7hB9FsbaJEDJs3mrB2YWy10"&gt;&lt;input type="hidden" id="pageState" name="pageState" value="login"&gt;&lt;input type="hidden" id="currentDispatch" name="currentDispatch" value="50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081988da7a3c03e3ee25661350b6a36dba24a"&gt;&lt;noscript&gt;&lt;input type="hidden" id="flag_non_js" name="flag_non_js" value="true"&gt;&lt;/noscript&gt;&lt;div id="loginModule"&gt;&lt;div id="hdrContainer" class="subhdr"&gt;&lt;h2&gt;Choose a way to pay&lt;/h2&gt;&lt;/div&gt;&lt;div class="panel active" id="method-paypal"&gt;&lt;div class="top"&gt;&lt;/div&gt;&lt;div class="body clearfix"&gt;&lt;div id="secureCheckout" class="lockLogo"&gt;&lt;span class="spriteLogo paypallock" title="PayPal"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span class="downarrow"&gt;&lt;/span&gt;&lt;div class="subhead"&gt;Pay with my PayPal account&lt;span class="help"&gt;Log in to your account to complete the purchase&lt;/span&gt;&lt;/div&gt;&lt;input type="hidden" name="email_recovery" value="false"&gt;&lt;input type="hidden" name="password_recovery" value="false"&gt;&lt;div id="loginBox"&gt;&lt;p class="group"&gt;&lt;label for="login_email"&gt;&lt;span class="labelText"&gt;Email&lt;/span&gt;&lt;/label&gt;&lt;span class="field"&gt;&lt;input type="text" id="login_email" class="confidential large" name="login_email" value="venkatnskns&amp;#x40;gmail&amp;#x2e;com"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="group"&gt;&lt;label for="login_password"&gt;&lt;span class="labelText"&gt;PayPal password&lt;/span&gt;&lt;/label&gt;&lt;span class="field"&gt;&lt;input autocomplete="off" type="password" id="login_password" name="login_password" value="" class="restricted large"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="buttons"&gt;&lt;input type="submit" id="submitLogin" name="login.x" value="Log In" class="button primary default parentSubmit"&gt;&lt;p&gt;&lt;a target="_blank" href="https://www.sandbox.paypal.com/us/cgi-bin/merchantpaymentweb?cmd=_account-recovery&amp;from=PayPal"&gt;Forgot your email address or password?&lt;/a&gt;&lt;/p&gt;&lt;/p&gt;&lt;/div&gt;&lt;input type="hidden" id="pageSession" name="SESSION" value="OdkkP9CI6mk&amp;#x2d;sjRgiWGSF62n&amp;#x2d;GgAqPqVtZrCPVXBG2V1uX6NmTvvMBEx2&amp;#x5f;e"&gt;&lt;input type="hidden" id="pageDispatch" name="dispatch" value="50a222a57771920b6a3d7b606239e4d529b525e0b7e69bf0224adecfb0124e9b61f737ba21b081988da7a3c03e3ee25661350b6a36dba24a"&gt;&lt;input type="hidden" id="CONTEXT_CGI_VAR" name="CONTEXT" value="wtgSziM4C5x0SI&amp;#x2d;9CmKcv2vkSeTLK5P&amp;#x5f;g6HqzC&amp;#x5f;&amp;#x5f;YTYkcqziFNcB84p79Ja"&gt;&lt;/div&gt;&lt;div class="bottom"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="method-cc" class="panel scTrack:xpt&amp;#x2f;Checkout&amp;#x2f;ec&amp;#x2f;Login&amp;#x3a;&amp;#x3a;&amp;#x5f;express&amp;#x2d;checkout:ClickBilling"&gt;&lt;span class="rightarrow"&gt;&lt;/span&gt;&lt;div class="subhead"&gt;&lt;span class="buttonAsLink"&gt;&lt;input type="submit" value="Don't have a PayPal account?" id="minipageSubmitBtn" name="new_user_button.x" class="parentSubmit noMask noAnimation"&gt;&lt;/span&gt;&lt;p class="small secondary"&gt;(Optional) Join PayPal for faster future checkout&lt;/p&gt;&lt;/div&gt;&lt;input type="hidden" name="cmd" value="_flow"&gt;&lt;input type="hidden" name="id" value=""&gt;&lt;input type="hidden" name="close_external_flow" value="false"&gt;&lt;input type="hidden" name="external_close_account_payment_flow" value="payment_flow"&gt;&lt;/div&gt;&lt;/div&gt;&lt;/fieldset&gt;&lt;div class="layout1"&gt;&lt;p class="small secondary return"&gt;&lt;span class="buttonAsLink"&gt;&lt;input type="submit" value="Cancel and return to Benchmark&amp;#x20;iPhone&amp;#x27;s&amp;#x20;Test&amp;#x20;Store." name="cancel_return" class="action"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;script type="text/javascript"&gt;
                                                                      YUD.setStyle('parentSlider', 'margin-left', '-560px');
                                                                  &lt;/script&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;input name="auth" type="hidden" value="ARlB87oxQ9J5V1AHb1z0XwiBtbOHOHDRWmiu&amp;#x2e;ySH5Pdx06UHFSnnO&amp;#x2e;ZzwT93TLFLx"&gt;&lt;input name="form_charset" type="hidden" value="UTF&amp;#x2d;8"&gt;&lt;/form&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;input type="hidden" id="XoCountryCode" name="" value="US"&gt;&lt;div id="prefooter"&gt;&lt;/div&gt;&lt;div id="footer"&gt;&lt;div id="opinionlab"&gt;&lt;a href="javascript:PP_O_LC();"&gt;Site Feedback&lt;/a&gt; &lt;img src="https://www.sandbox.paypal.com/en_US/i/scr/sm_333_oo.gif" border="0" alt="Site Feedback"&gt;&lt;/div&gt;
  &lt;!-- OnlineOpinionF3cS v3.0--&gt;
  &lt;script type="text/javascript"&gt;
              var feedback_link='Site Feedback'; var _ht=escape(document.location.href);
                                                                  var _hr=document.referrer;custom_var=escape('ukDrJAYX6XpzjZWCm13fDfZSMweU30\x252bmKW\x252bO7bgiwIlt8cKrcoR32LdDR4kzkZZIuUQ690k\x252bI7U\x253d\x5f13f84f881b6')+'|';custom_var+='Unknown|xpt\x2fCheckout\x2fec\x2fLogin\x3a\x3a\x5fexpress\x2dcheckout|US|en_US|Unknown|79933151TE8175237';// Paypal Custom URL class
              var PayPalURL = function(pagename) {
                  this.language_country_code = "en_US";
                  this.dd = "US";
                  this.nn = "00";this.pagename = escape(pagename.replace(/\s|\//g, "_"));
                  this.to_str = function() {
  
                  return "https://"+this.dd+".paypal.com/"+this.language_country_code+"/"+this.nn+"/"+this.pagename+".page"
                  }
                  }
                  var paypal_url = new PayPalURL("xpt\x2fCheckout\x2fec\x2fLogin\x3a\x3a\x5fexpress\x2dcheckout");
              // Below gives you the ability to change the other properties after the object is created
              //paypal_url.dd="ES";
              //paypal_url.nn="01";
  
          _ht = paypal_url.to_str();
          var _ht_temp=_ht;
          var _hr_temp=_hr;
          var baseurl="https://www\x2esandbox\x2epaypal\x2ecom\x2fus/cgi-bin/webscr?cmd=_handle-sf-redirect";var custom_var_temp=custom_var;&lt;/script&gt;&lt;p&gt;PayPal. The safer, easier way to pay. For more information, read our &lt;a target="_blank" href="https://cms.paypal.com/us/cgi-bin/marketingweb?cmd=_render-content&amp;content_ID=ua/UserAgreement_popup&amp;locale.x=en_US" title="Opens in new window" onClick="PAYPAL.core.openWindow(event, {width: 640, height:500});"&gt;User Agreement&lt;/a&gt; and &lt;a target="_blank" href="https://cms.paypal.com/us/cgi-bin/marketingweb?cmd=_render-content&amp;content_ID=ua/Privacy_popup&amp;locale.x=en_US" title="Opens in new window" onClick="PAYPAL.core.openWindow(event, {width: 640, height:500});"&gt;Privacy Policy&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;&lt;div id="footerSandbox"&gt;&lt;div id="sandboxFooter"&gt;&lt;div class="nav-footer"&gt;&lt;/div&gt;&lt;div id="testsite"&gt;&lt;h1&gt;Test Site&lt;/h1&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/Checkout/js/min/widgets.js"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;var mcSequenceDuration = "200";&lt;/script&gt;&lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/Checkout/js/min/checkout.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/Checkout/js/login.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/js/tns/fso_ngxo.js"&gt;&lt;/script&gt;&lt;script type="text/javascript"&gt;PAYPAL.tns.loginflow = 'xpt\x2fCheckout\x2fec\x2fLogin';PAYPAL.tns.flashLocation = 'https\x3a\x2f\x2fwww\x2esandbox\x2epaypal\x2ecom/en_US/m/mid.swf';&lt;/script&gt;
  &lt;!-- SiteCatalyst Code
  Copyright 1997-2005 Omniture, Inc.
  More info available at http://www.omniture.com --&gt;
  &lt;script type="text/javascript" src="https://www.sandbox.paypal.com/MERCHANTPAYMENTWEB-640-20130622-1/js/site_catalyst/pp_jscode_paypalsandboxdev.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  s.prop1="xpt\x2fCheckout\x2fec\x2fLogin";
  s.prop20="1372325446";
  s.prop35="out";
  s.prop40="9bf35c68eb041";
  s.prop50="en_US";
  s.prop64="b114448342636";
  s.eVar28="tnc\x2d9\x2decg\x2dcntl2";
  s.eVar31="xpt\x2fCheckout\x2fec\x2fLogin\x3a\x3a\x5fexpress\x2dcheckout";
  s.eVar50="ukDrJAYX6XpzjZWCm13fDfZSMweU30\x252bmKW\x252bO7bgiwIlt8cKrcoR32LdDR4kzkZZIuUQ690k\x252bI7U\x253d\x5f13f84f881b6";
  s.pageName="xpt\x2fCheckout\x2fec\x2fLogin\x3a\x3a\x5fexpress\x2dcheckout";
  s.prop56="yes";
  s.prop21="EC\x2d87714847AX7819342";
  s.prop5="79933151TE8175237";
  &lt;/script&gt;
  &lt;script type="text/javascript"&gt;&lt;!--
  /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
  function scOnload(){var s_code=s.t();if(s_code)document.write(s_code);}
  if(window.addEventListener){
  window.addEventListener('load',scOnload,false);
  }else if(window.attachEvent){
  window.attachEvent('onload', scOnload);
  };
  if(navigator.appVersion.indexOf('MSIE')&gt;=0)document.write(unescape('%3C')+'\!-'+'-')
  //--&gt;
  &lt;/script&gt;&lt;noscript&gt;&lt;img
  src="//paypal.112.2O7.net/b/ss/paypalsandboxdev/1/H.6--NS/0?pageName=NonJavaScript"
  height="1" width="1" border="0" alt="" /&gt;&lt;/noscript&gt;
  &lt;!--/DO NOT REMOVE/--&gt;
  
  &lt;!-- End SiteCatalyst Code --&gt;
  &lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>We didn't made any change in the code(both in app and server). We have three applications like using same sandbox account but using three different severs.In all three applications its not working now.We don't know what is the exact problem. We have been searching in google and paypal site for past two days and came up with no solution.</p>
  
  <p>Please suggest your idea.Really it would be a great help for us now.</p>
  
  <p>Thanks in advance.</p>
  
  <p><strong>NOTE:</strong></p>
  
  <p>In my php code(main part)</p>
  
  <pre><code>   if( $ack == "SUCCESS" ) {
              $token = urldecode($resArray["TOKEN"]);
  
              //Store the order information the DB and get the last inserted id
              $lastInsertOrderId = storeOrder($token,$comments,$transcation);
  
              //Store the order items array in the database
              storeOrderItems( $_POST["productArray"],  $lastInsertOrderId);
  
  
              //   echo urldecode($resArray["TOKEN"]);
                  /* XML Response */
                  //$ResponseXML ="&lt;Main&gt;&lt;Token&gt;&lt;![CDATA[" .$token. "]]&gt;&lt;/Token&gt;&lt;/Main&gt;";
                  /* JSON Response */
                  $ResponseXML ='{"Token":"' .$token. '"}';
  
                 echo $ResponseXML;
                     //If I command the following 4 lines I can get the token but I can't proceed the transaction.
                 Redirect to paypal.com here
                 $token = urldecode($resArray["TOKEN"]);
                 $payPalURL = PAYPAL_URL.$token;
                 header("Location: ".$payPalURL);
                    }
  </code></pre>
  
  <p>In the above php code if I command the last 4 lines I can get the Paypal token but while loading the sandbox login page, its saying the below error. </p>
  
  <p>"This transaction is invalid .Please return to the recipient's website to complete your transaction using their regular checkout flow."</p>
  
  <p>Please share your ideas. </p>
  
  <p>Thank you....</p>