How to refresh parent window in backend using postMessage API

in short, i did this with payments and shipping constellations use at your own risk:

	function zw() {
		var zahlartenwechsel = window.open('../account/payment','Zahlartwechsel','width=600, height=400'); 
		var timer = setInterval(function() { 
			if(zahlartenwechsel.closed) {
        			clearInterval(timer);
        			location.reload();
    			}
		}, 500);
	}

{if $sUserLoggedIn}
			 
			Zahlart wechseln
			
{/if}

you’re welcome. cheers