Open rvdsteege opened 2 years ago
For the Adyen web drop-in it would probably be nicer to move it to the WooCommerce checkout page so this is no longer an issue.
<div id="payment" class="woocommerce-checkout-payment">
<ul class="wc_payment_methods payment_methods methods">
</ul>
<!-- Adyen web drop-in -->
</div>
No idea if this is possible, probably won't be easy, but might be the solution to this issue.
That might also be an option, but moving the drop-in to the checkout page will probably also result in losing support for extensions such as Payment Gateway Based Fees.
@remcotolsma also mentioned adding a hidden field for Apple Pay support to the checkout form, which will then be included in the WooCommerce ajax action update_order_review
, so we can filter available gateways server-side. The advantage in comparison to moving the drop-in to the checkout page, is that this approach will also function for the Apple Pay payment method through other supported gateways.
With for example WooCommerce, our Apple Pay gateway is displayed as payment method at checkout even though this might not be supported by the browser/device.
A customer shared below CSS to only display this payment method in Safari,
However, these CSS hacks seems to need updates on browser updates:
Another way to only display the Apple Pay payment method if applicable, would be by checking
window.ApplePaySession
as described in Checking for Apple Pay Availability.Internal Help Scout ticket: https://secure.helpscout.net/conversation/1798706229/23596