Add ApplePay subscription validations in block pages.

This commit is contained in:
Pedro Silva 2024-01-30 17:46:28 +00:00
parent be7ece91da
commit c342a4a0d8
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
5 changed files with 13 additions and 7 deletions

View file

@ -70,10 +70,6 @@ class ApplepayButton {
if (this.isEligible) {
this.fetchTransactionInfo().then(() => {
const isSubscriptionProduct = this.ppcpConfig?.data_client_id?.has_subscriptions === true;
if (isSubscriptionProduct) {
return;
}
this.addButton();
const id_minicart = "#apple-" + this.buttonConfig.button.mini_cart_wrapper;
const id = "#apple-" + this.buttonConfig.button.wrapper;