Hi, in this script I made its very useful, you simply put your paypal payment page url on line 4 & you fill in the details and when you submit your payment the code helps autoskip the "would you like to sign up" popup and than it makes the webview page disappear when you get to the "purchase finished" page.

PHP Code:
var webView:StageWebView = new StageWebView();
webView.stage this.stage;
webView.viewPort = new Rectangle00480720);
webView.loadURL("");//paypal purchase page

webView.addEventListener(Event.COMPLETE,handleLoad);
var 
wvjs_timeout;
function 
handleLoad(e:Event){
wvjs_timeout=setTimeout(webViewLoop,1000);
}

function 
webViewLoop(){
webView.loadURL("javascript:if(document.getElementById('notNow')!=null){document.getElementById('notNow').click();};if(document.getElementById('cancel')!=null){document.getElementById('cancel').click();location.href='?as3Stream=auto_close';}");
wvjs_timeout=setTimeout(webViewLoop,1000);
}
webView.addEventListener(LocationChangeEvent.LOCATION_CHANGING,hrefNew);
function 
hrefNew(e:LocationChangeEvent){
if(
e.location.split("?")[e.location.split("?").length-1].split("=")[1]=="auto_close"){
clearTimeout(wvjs_timeout);
webView.viewPort null;
webView.stage null;
webView.dispose();
}