title: How to call another function from stripe handler response In Angular 8
body: <p>&quot;This question is repeated on stack but not getting solution&quot; .</p>
  <pre><code>loadStripe() { 
    if(!window.document.getElementById('stripe-script')) {
      var s = window.document.createElement(&quot;script&quot;);
      s.id = &quot;stripe-script&quot;;
      s.type = &quot;text/javascript&quot;;
      s.src = &quot;https://checkout.stripe.com/checkout.js&quot;;
      window.document.body.appendChild(s);
    } 
  
  pay(amount: any) {
      const handler = (&lt;any&gt;window).StripeCheckout.configure({
        key: 'pk_test_51IRXdhksd',
        locale: 'auto',
        token(token: any) {
          this.updateStatus(token.id);
           //IN HERE i try to put function (&quot;this.updateStatus&quot;), but it will give error. 
        }
      }); 
      handler.open({
        name: 'Test Site',
        description: '2 widgets',
        amount: amount * 100
      });
    }
  </code></pre>
  <blockquote>
  <p>If any one know solution then please share with us,  Thanks.</p>
  </blockquote>