title: How can i integrate paytm in angular4
body: <p>I'm integrating paytm in angular 4. paytm plugin is successfully added in project , but i don't know how to import paytm plugin in ts file. and call java file file function.</p>
  
  <p>please help me...
  here is my code</p>
  
  <pre><code>import { Nav, Platform } from 'ionic-angular';
  import { Component, OnInit } from '@angular/core';
  import { NavController } from 'ionic-angular';
  import {} from 'jasmine';
  import {LoginPage} from "../login/login";
  import {SignUpPage} from "../signup/signup";
  import {HomePage} from "../home/home";
  import { Paytm } from '@ionic-paytm/paytm';
  
  @Component({
      selector: 'page-apphome',
      templateUrl: 'apphome.html'
  })
  export class AppHomePage implements OnInit {
  
      constructor(public navCtrl: NavController ,public paytm:Paytm) {}
  
      ngOnInit(){
          window.plugins.paytm.startPayment("526", "25862", "abc@gmail.com", 
             "777777777", "25", successCallback, failureCallback);
          var userids=window.localStorage.getItem('userid');
          //alert(userids);
          if(userids!= null)
          {
              this.navCtrl.push(HomePage);
          }
      }
  }
  </code></pre>