🐛 Remove the empty Apple Pay wrapper

This commit is contained in:
Philipp Stracker 2024-08-28 13:41:55 +02:00
parent f5d4faba79
commit 8577594033
No known key found for this signature in database

View file

@ -339,6 +339,12 @@ class ApplePayButton {
this.#isInitialized = true; this.#isInitialized = true;
this.applePayConfig = config; this.applePayConfig = config;
if ( this.isSeparateGateway ) {
document
.querySelectorAll( '#ppc-button-applepay-container' )
.forEach( ( el ) => el.remove() );
}
if ( ! this.isEligible ) { if ( ! this.isEligible ) {
this.hide(); this.hide();
} else { } else {