How to refresh/reload WooCommerce checkout page after adding a coupon code (wordpress)?

Solution:

It’s working with the following code:

jQuery( document.body ).on( 'applied_coupon_in_checkout removed_coupon_in_checkout', function () {
    location.reload();
} );