INSR-7760: Some more payment-page and HOP updates
This commit is contained in:
parent
9d3ce7a90f
commit
db8d5bc3b5
3 changed files with 20 additions and 4 deletions
|
|
@ -1,3 +1,17 @@
|
|||
export function supportsApplePay() {
|
||||
return !!(window.ApplePaySession && window.ApplePaySession.canMakePayments());
|
||||
var iOSversion = getiOSversion();
|
||||
var isMacOS = navigator.platform.indexOf("Mac") !== -1;
|
||||
if (isMacOS || (iOSversion && iOSversion[0] >= 17)) {
|
||||
if (window.ApplePaySession && window.ApplePaySession.canMakePayments()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
function getiOSversion() {
|
||||
if (/iP(hone|od|ad)/.test(navigator.platform)) {
|
||||
// supports iOS 2.0 and later:
|
||||
var v = navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);
|
||||
return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];
|
||||
}
|
||||
}
|
||||
|
|
@ -890,7 +890,7 @@ export default {
|
|||
margin-bottom: .625rem;
|
||||
}
|
||||
|
||||
.cart-dropdown-component:deep(*) {
|
||||
.cart-dropdown-component.cart-table {
|
||||
font-size: .8125rem;
|
||||
}
|
||||
|
||||
|
|
@ -900,7 +900,9 @@ export default {
|
|||
}
|
||||
|
||||
.switch-payment-container {
|
||||
padding-top: 1.25rem
|
||||
@include media-breakpoint-up(lg) {
|
||||
padding-top: 1.25rem
|
||||
}
|
||||
}
|
||||
|
||||
.switch-payment-text {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ process.env.VUE_APP_CONSUMER_CF_DISTRO = 'https://digitalapi.dev.safelite.io';
|
|||
process.env.VUE_APP_CURRENT_ENVIRONMENT = 'Localhost';
|
||||
process.env.VUE_APP_CUSTOMER_PORTAL_URL = 'https://myaccountdev.safelite.com/';
|
||||
process.env.VUE_APP_GOOGLE_PLACES_API_KEY = 'AIzaSyCuLhQcDdZTTb4JzpUFms1OCch2dk5lHF0';
|
||||
process.env.VUE_APP_SAFELITE_HOP = 'https://iss-hop-dev.glassclaim.com/fmgCheckoutShared.aspx';
|
||||
process.env.VUE_APP_SAFELITE_HOP = 'https://iss-hop-sys.glassclaim.com/fmgCheckoutShared.aspx';
|
||||
|
||||
// GA & GTM
|
||||
// NOTE: Using the old ISS site GTM Cotnainer ID for now, will create a new one soon.
|
||||
|
|
|
|||
Loading…
Reference in a new issue