Cannot find name 'cordova'

still its giving

ERROR ReferenceError: cordova is not defined

import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
declare var cordova: any;

public payudetails()
{
var ref = cordova.InAppBrowser.open(this.url, ‘_self’, ‘location=yes’);
}
Inside function im using INappbrowser to open new url ?

I need open new external url and closing
please help me

import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
Export class yourClass{
constructor(public iab: InAppBrowser){}

payudetails(){
this.InAppBrowser.open(this.url, ‘_self’, ‘location=yes’);
}

}

Hi getting same
import { InAppBrowser } from ‘@ionic-native/in-app-browser’;
constructor(public iab: InAppBrowser){}

[ts] Property ‘InAppBrowser’ does not exist on type ‘CheckoutCarPage’.

now i am able to open browser using window.open
after user closed means it has to redirect to some page
how i can do that ?

have you done any payment gateway integration process for ionic 2 ?

oops, should have been:

this.iab.open(this.url, ‘_self’, ‘location=yes’);

no, haven’t done sth like this. I use the iab to get Login Cookies.