From ef8af8af1dee8897d8f0c3b9194b0c443f46199f Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 9 Dec 2024 16:32:29 +0400 Subject: [PATCH 1/2] Remove the "debit and credit" card from data --- .../resources/js/data/settings/tab-styling-data.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/ppcp-settings/resources/js/data/settings/tab-styling-data.js b/modules/ppcp-settings/resources/js/data/settings/tab-styling-data.js index 92bb32015..5a0853f00 100644 --- a/modules/ppcp-settings/resources/js/data/settings/tab-styling-data.js +++ b/modules/ppcp-settings/resources/js/data/settings/tab-styling-data.js @@ -57,10 +57,6 @@ export const paymentMethodOptions = [ value: 'paylater', label: __( 'Pay Later', 'woocommerce-paypal-payments' ), }, - { - value: 'card', - label: __( 'Debit or Credit Card', 'woocommerce-paypal-payments' ), - }, { value: 'googlepay', label: __( 'Google Pay', 'woocommerce-paypal-payments' ), From 86191be2f465d5002fc366ed126b6b3cfede9b20 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Mon, 9 Dec 2024 17:03:47 +0400 Subject: [PATCH 2/2] Disable the funding from preview for "Credit or debit cards" --- .../resources/js/Components/Screens/Overview/TabStyling.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabStyling.js b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabStyling.js index df2983aea..ed967deb2 100644 --- a/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabStyling.js +++ b/modules/ppcp-settings/resources/js/Components/Screens/Overview/TabStyling.js @@ -321,6 +321,7 @@ const SectionButtonPreview = ( { locationSettings } ) => { clientId: 'test', merchantId: 'QTQX5NP6N9WZU', components: 'buttons,googlepay', + 'disable-funding': 'card', 'buyer-country': 'US', currency: 'USD', } }