I'm having an issue with a JS conflict, caused by a custom jQuery script that alters text once the checkout has updated. When this script is included, the Stripe payment gateway on my WooCommerce site does not allow input into credit and debit card fields.
I'd still like the script to run, but have no idea how to resolve/avoid the conflict, so at the moment, I've had to omit it. Does anyone have an idea as to why the below is causing a conflict?
<script>
jQuery(document).ready(function(){
jQuery( 'body' ).on( 'updated_checkout', function() {
var replaced = jQuery(".woocommerce-checkout #order_review .product-info .variation dd.variation-Extras p").html().replace(' Booking Fee×1 ( <span class="woocommerce-Price-amount amount"><span class="woocommerce-Price-currencySymbol">£</span>0.00</span> - One Time ) ,','Booking Fee (£0.00)');
jQuery(".woocommerce-checkout #order_review .product-info .variation dd.variation-Extras p").html(replaced);
});
});
</script>