title: Stripe - global is not defined
body: <p>I have a problem when I want to use the stripe API.</p>
  
  <p>Environnement : </p>
  
  <pre><code>  "devDependencies": {
      "@angular-devkit/build-angular": "~0.803.20",
      "@angular/cli": "~8.3.23",
      "@angular/compiler": "~8.2.14",
      "@angular/compiler-cli": "~8.2.14",
      "@angular/language-service": "~8.2.14",
      "@ionic/angular-toolkit": "^2.1.1",
      "@types/node": "^8.9.5",
      "ts-node": "~7.0.0",
      "tslint": "~5.15.0",
      "typescript": "~3.4.3"
    },
  
    "dependencies": {
      "@angular/common": "~8.2.14",
      "@angular/core": "~8.2.14",
      "@angular/forms": "~8.2.14",
      "@angular/platform-browser": "~8.2.14",
      "@angular/platform-browser-dynamic": "~8.2.14",
      "@angular/router": "~8.2.14",
      "@ionic-native/core": "^5.0.0",
      "@ionic/angular": "^5.0.0",
      "core-js": "^2.5.4",
      "rxjs": "~6.5.1",
      "stripe": "^8.32.0",
    },
  </code></pre>
  
  <p>Node version : 13.7.0</p>
  
  <h2>My problem</h2>
  
  <blockquote>
    <p>capability.js:1 Uncaught ReferenceError: global is not defined</p>
  </blockquote>
  
  <p>From the moment I use:</p>
  
  <pre><code>import Stripe from 'stripe';
  const stripe = new Stripe('sk_test_...', {
    apiVersion: '2020-03-02',
  });
  </code></pre>
  
  <p>I tried (in my index.html or Polyfills) :</p>
  
  <pre><code>(window as any).global = window;
  global.Buffer = global.Buffer || require('buffer').Buffer;
  (window as any).process = {
    version: ''
  };
  </code></pre>
  
  <p>Lots of things like that but always mistakes.</p>
  
  <p>I also put <strong>Stripe.js</strong> in my <strong>index.html</strong> but still nothing.</p>
  
  <p>Can you help me ?</p>