title: angular 5 paypal integration
body: <p>I am using angular 5, and I need to integrate paypal checkout, so I am following below procedure </p>
  
  <pre><code>run 'npm install xcomponent'
  run 'npm install paypal-checkout'
  </code></pre>
  
  <p>script added to index.html</p>
  
  <p><code>&lt;script src="https://www.paypalobjects.com/api/checkout.js"&gt;&lt;/script&gt;</code> </p>
  
  <p>At app.module.ts, exported and imported (in NgModule imports list) a new Module
  declare</p>
  
  <blockquote>
    <p>const paypal:any; </p>
    
    <p>export const PayPalButtonModule =
    paypal.Button.driver( 'angular2', {  </p>
    
    <p>Component, NgModule, ElementRef,
    NgZone  });</p>
  </blockquote>
  
  <p>but I had error in the app.module.ts for red underline error in this <strong>Component, NgModule, ElementRef, NgZone</strong> in above code, How to implement paypal in angular 5 please help to solve this problem</p>