mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix links
Remove the paylater sign up link
This commit is contained in:
parent
b68f3b639a
commit
ecfcdae03d
1 changed files with 13 additions and 15 deletions
|
@ -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',
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue