Merge pull request #3085 from woocommerce/PCP-4188-check-and-fix-all-links

Check and fix all links (4188)
This commit is contained in:
Emili Castells 2025-02-10 12:21:23 +01:00 committed by GitHub
commit aca02dcb90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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