title: unable to integrate razorpay in angular 4
body: <p>I am trying to integrate the razorPay payment gateway.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>  payNow( ) { 
          
            var options = {
              "key": "rzp_test_dveDexCQKoGszl",
              "amount":((this.buyNow==1)?this.shared.totalAmountWithDisocuntBuyNow:this.shared.totalAmountWithDisocunt)*100, // 2000 paise = INR 20
              "name": " MARKET",
              "description": "Order #",
          
              "handler": function (response){
                  console.log(response);
                  alert(response.razorpay_payment_id);
                  this.paid();
                  this.shared.addOrder(this.buyNow,response.razorpay_payment_id);     
           
                
                 },
              "prefill": {
                  "name":  this.shared.orderDetails.billing_firstname + " " + this.shared.orderDetails.billing_lastname,
                  "email": this.shared.customerData.customers_email_address,
                  "contact": this.shared.customerData.customers_telephone,
             
              },
              "notes": {
                  "address": this.shared.orderDetails.billing_street_address+', '+this.shared.orderDetails.billing_city+', '+this.shared.orderDetails.billing_state+' '+this.shared.orderDetails.billing_postcode+', '+this.shared.orderDetails.billing_country 
              },
              "theme": {
                  "color": "blue"
              }
          };
          var rzp1 = new Razorpay(options);
  
         rzp1.open();
    
       // body...
     } 
     paid()
     {alert();}</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have defined in handler the callback function. But issue is it successfully logs the response and alerts it too but it does not calls 
  <code>this.paid()</code>
   or
  <code>this.shared.addOrder(this.buyNow,response.razorpay_payment_id);</code></p>
  
  <p>There are no console errors nothing. It just does not calls any of above methioned functions. </p>