Hide spinner on card fields loaded

This commit is contained in:
Emili Castells Guasch 2023-11-14 12:00:26 +01:00
parent 12a9928608
commit 4d56994901

View file

@ -198,6 +198,8 @@ class CreditCardRenderer {
const cvvField = cardField.CVVField();
cvvField.render(cvvFieldContainer);
document.getElementById("ppcp-credit-card-gateway-card-cvc").remove();
document.dispatchEvent(new CustomEvent("hosted_fields_loaded"));
}
gateWayBox.style.display = oldDisplayStyle;