title: Can not open Paypal Express Checkout in Inappbrowser in ionic App
body: <p>I am working on Paypal Express Checkout Integration with Ionic App, Paypal Client Side API is opening when I am testing on chrome on button click but not in the .apk on Android Phone. After searching a bit, I came across the InAPP Browser Cordova plugin which opens browser.</p>
  
  <p>How to integrate InApp Browser with the Paypal API is the problem I have been facing as Inappbrowser requires url while Paypal API has it's own script which opens the Page on it's button click.</p>
  
  <pre><code>paypal.Button.render({
  
      env: 'sandbox', // Optional: specify 'sandbox' environment
  
      client: {
          sandbox:    'key-secret',
          production: 'xxxxxxxxx'
      },
  
      payment: function() {
  
          var env    = this.props.env;
          var client = this.props.client;
  
          return paypal.rest.payment.create(env, client, {
              transactions: [
                  {
                      amount: { total: '1.00', currency: 'USD' }
                  }
              ]
          });
      },
  
      commit: true, // Optional: show a 'Pay Now' button in the checkout flow
  
      onAuthorize: function(data, actions) {
  
          // Optional: display a confirmation page here
  
          return actions.payment.execute().then(function() {
              // Show a success page to the buyer
          });
      }
  
  }, '#paypal-button');
  </code></pre>
  
  <p>Inappbrowser code which opens the url is:</p>
  
  <pre><code> $cordovaInAppBrowser.open('url(want to open paypal here)', '_blank', options)
  
    .then(function(event) {
       // success
    })
  
    .catch(function(event) {
       // error
    });  
  </code></pre>
  
  <p>Paypal Button "I want it to open the Paypal API in Inappbrowser on this button click"</p>
  
  <pre><code> &lt;div id="paypal-button"&gt;&lt;/div&gt;
  </code></pre>