Fix links

Remove the paylater sign up link
This commit is contained in:
carmenmaymo 2025-02-10 11:55:56 +01:00
parent b68f3b639a
commit ecfcdae03d
No known key found for this signature in database
GPG key ID: 6023F686B0F3102E

View file

@ -39,10 +39,7 @@ export const getFeatures = ( setActiveModal ) => {
{ {
type: 'tertiary', type: 'tertiary',
text: __( 'Learn more', 'woocommerce-paypal-payments' ), text: __( 'Learn more', 'woocommerce-paypal-payments' ),
urls: { url: 'https://www.paypal.com/us/enterprise/payment-processing/accept-venmo',
sandbox: '#',
live: '#',
},
class: 'small-button', class: 'small-button',
}, },
], ],
@ -239,6 +236,17 @@ export const getFeatures = ( setActiveModal ) => {
!! window.ppcpSettings?.isPayLaterConfiguratorAvailable && !! window.ppcpSettings?.isPayLaterConfiguratorAvailable &&
countryData countryData
) { ) {
const countryLocation = [
'UK',
'ES',
'IT',
'FR',
'US',
'DE',
'AU',
].includes( storeCountry )
? storeCountry.toLowerCase()
: 'us';
features.push( { features.push( {
id: 'pay_later_messaging', id: 'pay_later_messaging',
title: __( 'Pay Later Messaging', 'woocommerce-paypal-payments' ), title: __( 'Pay Later Messaging', 'woocommerce-paypal-payments' ),
@ -256,20 +264,10 @@ export const getFeatures = ( setActiveModal ) => {
showWhen: 'enabled', showWhen: 'enabled',
class: 'small-button', class: 'small-button',
}, },
{
type: 'secondary',
text: __( 'Sign up', 'woocommerce-paypal-payments' ),
urls: {
sandbox: '#',
live: '#',
},
showWhen: 'disabled',
class: 'small-button',
},
{ {
type: 'tertiary', type: 'tertiary',
text: __( 'Learn more', 'woocommerce-paypal-payments' ), text: __( 'Learn more', 'woocommerce-paypal-payments' ),
url: 'https://developer.paypal.com/studio/checkout/pay-later/us', url: `https://www.paypal.com/${ countryLocation }/business/accept-payments/checkout/installments`,
class: 'small-button', class: 'small-button',
}, },
], ],