For development-only reasons, how can one make Chrome running on non-Apple desktops trick "Apple Pay" buttons into showing themselves on enabled sites?
The "Apple Pay" button doesn't have to be functional, just get displayed.
As a slight update to @anibe's answer, it is also required to add a callback method to return the supported version, as such:
<script>
window.ApplePaySession = {
canMakePayments: function() { return true; },
supportsVersion: function() { return 8; },
canMakePaymentsWithActiveCard: function() {
return jQuery.Deferred().resolve(true).promise();
}
};
</script>
This 'trick' worked for my team to enable simulate Apple Pay support. However, note that the styling for the Apple Pay buttons are only available to iOS devices using custom CSS rules
window.ApplePaySession = { canMakePayments: function() { return true; },
canMakePaymentsWithActiveCard: function() { return
$.Deferred().resolve(true).promise(); } };
Assumptions:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With