mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +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',
|
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',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue