From 6deed182ee06244f1f67fea4df7ed69a65981b8f Mon Sep 17 00:00:00 2001 From: Eliza Lucas Date: Tue, 15 Mar 2022 15:24:36 -0400 Subject: [PATCH 1/2] make lineItemType a dropdown field --- pages/debug/payments/digitalWallets/convertToken.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/debug/payments/digitalWallets/convertToken.vue b/pages/debug/payments/digitalWallets/convertToken.vue index 6ddccd7c..c5bc87a8 100644 --- a/pages/debug/payments/digitalWallets/convertToken.vue +++ b/pages/debug/payments/digitalWallets/convertToken.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 From d2b898634ea8a689e8fdf2c5a2c453ecf5b7a138 Mon Sep 17 00:00:00 2001 From: Eliza Lucas Date: Tue, 15 Mar 2022 16:49:53 -0400 Subject: [PATCH 2/2] remove old applepay page and rename convertTokens to paymenttokens --- layouts/default.vue | 25 ++--------- pages/debug/payments/applepay/create.vue | 45 ------------------- .../{convertToken.vue => paymenttokens.vue} | 0 3 files changed, 4 insertions(+), 66 deletions(-) delete mode 100644 pages/debug/payments/applepay/create.vue rename pages/debug/payments/digitalWallets/{convertToken.vue => paymenttokens.vue} (100%) 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 100% rename from pages/debug/payments/digitalWallets/convertToken.vue rename to pages/debug/payments/digitalWallets/paymenttokens.vue