title: Paypal Express Checkout with AngularJS
body: <p>Has anyone had success integrating the PayPal Express Checkout API into an AngularJS web app? I have tried to adapt the <a href="https://developer.paypal.com/docs/classic/express-checkout/in-context/integration/" rel="nofollow">"in-context" integration steps</a> into my angular site; however, it only works properly once.</p>
  
  <p>My scenario is this:</p>
  
  <ul>
  <li>I have the paypal button on a page</li>
  <li>Clicking the paypal button calls <code>paypal.checkout.initXO()</code>, and then makes a server-side call to generate an express checkout token</li>
  <li>When the call returns, I pass the token into <code>paypal.checkout.startFlow(tokenFromServer)</code></li>
  <li>The PayPal API creates a popup and collects my paypal account info</li>
  <li>The browser gets navigated to my confirm page based on what I set up server-side when I generated the express checkout token.</li>
  </ul>
  
  <p>As I said above, this works fine once; the PayPal API navigates the browser to my confirmation page just as I expect. However, subsequent attempts to use the express checkout API don't navigate the browser after finishing with the paypal popup window. Refreshing the browser allows me to use express checkout again, once.</p>
  
  <p>I'm not seeing any errors in the Javascript console.</p>