title: react native - payment with PayPal v2/orders
body: <p>I am implementing PayPal in React Native, following the documentation for  <a href="https://developer.paypal.com/docs/api/payments/v2/" rel="nofollow noreferrer">PayPal Payments v2 API</a></p>
  
  <p>Here is the step by step of my checkout:</p>
  
  <ol>
  <li>Use <a href="https://api.sandbox.paypal.com/v1/oauth2/token" rel="nofollow noreferrer">https://api.sandbox.paypal.com/v1/oauth2/token</a> to get token.</li>
  <li>Use <a href="https://api.sandbox.paypal.com/v2/checkout/orders" rel="nofollow noreferrer">https://api.sandbox.paypal.com/v2/checkout/orders</a> to create an order </li>
  <li>Use approve link for clients to accept payment</li>
  <li>I set the <code>return_url</code> to be <code>https://www.google.com/</code>. After clients accept the payment, I receive the <code>return_url</code> <code>https://www.google.com/?token=&lt;order_id&gt;&amp;PayerID=&lt;payer_id&gt;</code></li>
  </ol>
  
  <p>At this point I'm stuck: how can I use the information <code>order_id</code> and <code>payer_id</code>?</p>