mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
💄 Make the send-only message look a bit nicer
This commit is contained in:
parent
0bc06deebf
commit
0735cae04f
1 changed files with 45 additions and 9 deletions
|
@ -1,18 +1,54 @@
|
|||
import { __, sprintf } from '@wordpress/i18n';
|
||||
|
||||
import Container from '../ReusableComponents/Container';
|
||||
import SettingsCard from '../ReusableComponents/SettingsCard';
|
||||
import SettingsNavigation from './SettingsNavigation';
|
||||
|
||||
const SendOnlyMessage = () => {
|
||||
const settingsPageUrl = '/wp-admin/admin.php?page=wc-settings';
|
||||
|
||||
const message = sprintf(
|
||||
/* translators: 1: URL to the WooCommerce store location settings */
|
||||
__(
|
||||
'Your current <a href="%1$s">WooCommerce store location</a> is in a "send-only" country, according to PayPal\'s policies. Sellers in these countries are unable to receive payments via PayPal. Since receiving payments is essential for using the PayPal Payments extension, you will not be able to connect your PayPal account while operating from a "send-only" country. To activate PayPal, please update your <a href="%1$s">WooCommerce store location</a> to a supported region and connect a PayPal account eligible for receiving payments.',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
settingsPageUrl
|
||||
return (
|
||||
<>
|
||||
<SettingsNavigation />
|
||||
<Container page="settings">
|
||||
<SettingsCard
|
||||
title={ __(
|
||||
'"Send-only" Country',
|
||||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
description={ __(
|
||||
'Sellers in your country are unable to receive payments via PayPal',
|
||||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
>
|
||||
<p>
|
||||
{ __(
|
||||
'Your current WooCommerce store location is in a "send-only" country, according to PayPal\'s policies',
|
||||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
</p>
|
||||
<p>
|
||||
{ __(
|
||||
'Since receiving payments is essential for using the PayPal Payments extension, you are unable to connect your PayPal account while operating from a "send-only" country.',
|
||||
'woocommerce-paypal-payments'
|
||||
) }
|
||||
</p>
|
||||
<p
|
||||
dangerouslySetInnerHTML={ {
|
||||
__html: sprintf(
|
||||
/* translators: 1: URL to the WooCommerce store location settings */
|
||||
__(
|
||||
'To activate PayPal, please update your <a href="%1$s">WooCommerce store location</a> to a supported region and connect a PayPal account eligible for receiving payments.',
|
||||
'woocommerce-paypal-payments'
|
||||
),
|
||||
settingsPageUrl
|
||||
),
|
||||
} }
|
||||
/>
|
||||
</SettingsCard>
|
||||
</Container>
|
||||
</>
|
||||
);
|
||||
|
||||
return <p dangerouslySetInnerHTML={ { __html: message } } />;
|
||||
};
|
||||
|
||||
export default SendOnlyMessage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue