This snippet open the Waves Payment API in a new tab.
For WooCommerce.
/**
* Open Waves payment API in new window
*/
add_action( 'woocommerce_thankyou', 'mcc_waves_payment_new_window' );
function mcc_waves_payment_new_window() { ?>
<script type="text/javascript">
jQuery(document).ready(function(){
jQuery(window).load(function(){
jQuery('.mcc .payment_buttons a.waves_payment').attr('target', '_blank');
});
});
</script>
<?php }