-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only display Apple Pay payment method if supported #11
Comments
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 |
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
The text was updated successfully, but these errors were encountered: