Skip to content

Commit

Permalink
0117061 - remove ApplePay payment mode from DOM when unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianGoral-fc committed Jan 14, 2025
1 parent 60636a1 commit d202096
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/twig/payment/adyen_assets.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@
{% if isLog %}
console.error('Apple Pay not available', e);
{% endif %}
const input = document.getElementById('payment_{{ adyenApplePay }}')?.closest('.d-none');
if (input) {
input.remove();
}
});
{% endif %}
{% if oView.handleAdyenAssets(adyenCreditCard) %}
Expand Down

0 comments on commit d202096

Please sign in to comment.