title: Paypal return url with Angular app
body: <p>This is part of my router.js:</p>
  
  <pre><code>  .state('app.thanks', {
          url: "/thanks",
          views: {
            'menuContent': {
              templateUrl: "templates/thanks.php"
            }
          }
        })
  </code></pre>
  
  <p>and in payapl WEBSITE PAYMENT PREFERENCES -> return url address I define this: 
  <a href="https://my-website-url.com/#/app/thanks" rel="nofollow">https://my-website-url.com/#/app/thanks</a>,</p>
  
  <p>as I understand, in order to get the params from Payapl I need to use this code to get transaction id:</p>
  
  <pre><code>if(isset($_GET['tx']) &amp;&amp; ($_GET['tx'])!=null &amp;&amp; ($_GET['tx'])!= "") {
      $tx = $_GET['tx'];
      if($tx) doSometing();
  }
  else {
      exitCode();
  }
  </code></pre>
  
  <p>How can I combine it with my angular app? only need to put this code in my thanks.php page?</p>
  
  <p>thanks!!</p>