title: PayPal adaptive payment flow on React Native
body: <p>I'm creating an app with react native that have a payment module with credit card and PayPal as payment module. The payment is automatically transferred to a vendor account subscribed in our platform
  (<strong>Buyer -> Platform -> Vendor</strong>).</p>
  
  <p>I already successfully created this payment flow in the credit card payment module using stripe as a payment gateway but i didn't find a way to do it with PayPal. </p>
  
  <p><a href="https://i.stack.imgur.com/8eB0l.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8eB0l.jpg" alt="enter image description here"></a></p>
  
  <p>Here's a list of what i tried:</p>
  
  <ol>
  <li><p><strong>Adaptive payment</strong>: the problem with PayPal adaptive payment is that's it's not mobile friendly, the <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_ap-payment&amp;paykey=AP-XXX" rel="nofollow noreferrer">standard checkout page</a> is not even close to being responsive. The lightbox checkout page need to open a new Popup which is not possible with RN WebView. And the Mini-Browser one do not return a response after the payment is done (check out <a href="https://stackoverflow.com/a/28113162/6450941">this link</a>)</p></li>
  <li><p><strong>Braintree SDK</strong>: Braintree has a pretty great SDK for RN that i already tested and it works great, the problem is that i need to use Braintree's master-merchant and sub-merchants technique to achieve the payment flow i need, but <a href="https://developers.braintreepayments.com/guides/braintree-marketplace/overview#compatibility" rel="nofollow noreferrer">this technique is only available in the US and the funds needs to be in USD</a> and my application is deployed in France using EUR as a currency.</p></li>
  <li><p><strong>Braintree SDK with PayPal payout</strong>: I could create a Braintree account to receive all the funds and then send each one to it's receiver (vendor) automatically but i couldn't find a way to do this </p></li>
  </ol>
  
  <p>If anyone have an idea of how could i create this flow with PayPal on RN.</p>