From 72f0a1e1866324a8dabbde44bfeb9c53a488870d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D0=B0=D1=82=D0=B0?= =?UTF-8?q?=D0=B5=D0=B2?= Date: Thu, 26 Dec 2024 12:41:59 +0000 Subject: [PATCH] hotfix/remove-apple-google-pay --- .../PaymentModalV1/PaymentForm/index.tsx | 6 ++---- src/hooks/payment/nmi/usePayment.ts | 4 ++-- src/utils/FBMetaPixel/index.tsx | 16 ++++++++-------- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/src/components/PalmistryV1/components/PaymentModalV1/PaymentForm/index.tsx b/src/components/PalmistryV1/components/PaymentModalV1/PaymentForm/index.tsx index 8264df2..1de6562 100644 --- a/src/components/PalmistryV1/components/PaymentModalV1/PaymentForm/index.tsx +++ b/src/components/PalmistryV1/components/PaymentModalV1/PaymentForm/index.tsx @@ -10,8 +10,6 @@ import cn from "classnames"; import { getFormattedPrice } from '@/utils/price.utils'; import SecurityPayments from '@/components/pages/TrialPayment/components/SecurityPayments'; import { usePayment } from '@/hooks/payment/nmi/usePayment'; -import GooglePayButton from '@/components/Payment/nmi/GooglePayButton'; -import ApplePayButton from '@/components/Payment/nmi/ApplePayButton'; import Title from '@/components/Title'; import metricService, { EGoals, EMetrics } from '@/services/metric/metricService'; import { useNavigate } from 'react-router-dom'; @@ -130,8 +128,8 @@ function PaymentForm({
Credit / Debit Card
- - + {/* + */}

diff --git a/src/hooks/payment/nmi/usePayment.ts b/src/hooks/payment/nmi/usePayment.ts index a2363fb..c23ec9f 100644 --- a/src/hooks/payment/nmi/usePayment.ts +++ b/src/hooks/payment/nmi/usePayment.ts @@ -61,8 +61,8 @@ export const usePayment = ({ placementKey, activeProduct }: IUsePaymentProps) => } }, price: formPrice, - country: "US", - currency: "USD", + // country: "US", + // currency: "USD", }); }, [placementId, paywallId]); diff --git a/src/utils/FBMetaPixel/index.tsx b/src/utils/FBMetaPixel/index.tsx index 5e3ab76..3a6f821 100644 --- a/src/utils/FBMetaPixel/index.tsx +++ b/src/utils/FBMetaPixel/index.tsx @@ -166,19 +166,19 @@ fbq('track', 'PageView');`; {isPalmistry && } {isPalmistry && } {isPalmistry && locale === "es" && ( - <> - - - + + )} + {isPalmistry && locale === "es" && ( + )} {isPalmistry && locale?.includes("pt") && ( )} {isPalmistry && locale === "en" && ( - <> - - - + + )} + {isPalmistry && locale === "en" && ( + )} {/* Compatibility */} {!isPalmistry && !isChats && locale === "es" && (