diff --git a/layouts/default.vue b/layouts/default.vue index 4b26815d..65faae4b 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -73,7 +73,7 @@ import { Vue, Component } from 'nuxt-property-decorator' import { getIsStaging, getIsLocalHost } from '@/lib/apiTarget' -import { getIsSafari } from '@/lib/navigatorInfo' @Component export default class DefaultLayoutsClass extends Vue { isStaging: boolean = getIsStaging() isLocalHost: boolean = getIsLocalHost() - isSafari: boolean = getIsSafari() - flowLinks = [ { title: 'Charge a card', @@ -429,18 +426,11 @@ export default class DefaultLayoutsClass extends Vue { to: '/debug/payments/balances/fetch', }, { - title: 'POST /convertToken', - to: '/debug/payments/digitalWallets/convertToken', + title: 'POST /paymenttokens', + to: '/debug/payments/digitalWallets/paymenttokens', }, ] - applePayStaging = { - title: 'Apple Pay', - to: '/debug/payments/applepay/create', - } - - paymentsLinksWithApplePay = this.paymentsLinks.concat(this.applePayStaging) - marketplaceLinks = [ { title: 'GET /marketplace/merchants', @@ -643,15 +633,8 @@ export default class DefaultLayoutsClass extends Vue { showRightDrawer = false showDrawer = false - get allPaymentLinks() { - if (this.isSafari && (this.isStaging || this.isLocalHost)) { - return this.paymentsLinksWithApplePay - } - return this.paymentsLinks - } - get title() { - const navItems = this.flowLinks.concat(this.allPaymentLinks) + const navItems = this.flowLinks.concat(this.paymentsLinks) const currentPage = navItems.find((item) => { return item.to === this.$route.path }) diff --git a/pages/debug/payments/applepay/create.vue b/pages/debug/payments/applepay/create.vue deleted file mode 100644 index 72d07af4..00000000 --- a/pages/debug/payments/applepay/create.vue +++ /dev/null @@ -1,45 +0,0 @@ - - - - - diff --git a/pages/debug/payments/digitalWallets/convertToken.vue b/pages/debug/payments/digitalWallets/paymenttokens.vue similarity index 99% rename from pages/debug/payments/digitalWallets/convertToken.vue rename to pages/debug/payments/digitalWallets/paymenttokens.vue index 6ddccd7c..c5bc87a8 100644 --- a/pages/debug/payments/digitalWallets/convertToken.vue +++ b/pages/debug/payments/digitalWallets/paymenttokens.vue @@ -21,9 +21,10 @@ v-model="applePayFormData.shopName" label="Shop Name" /> - @@ -190,6 +191,7 @@ export default class ConvertToken extends Vue { paymentType = ['Google Pay', 'Apple Pay'] merchantTypeApplePay = ['PayFac', 'Partnership'] merchantTypeGooglePay = ['PayFac'] + lineItemTypeApplePay = ['final', 'pending'] error = {} loading = false showError = false