woocommerce-paypal-payments/modules/ppcp-settings/resources/js/Components/Screens/SendOnlyMessage.js

69 lines
1.9 KiB
JavaScript
Raw Normal View History

import { __, sprintf } from '@wordpress/i18n';
import { Button } from '@wordpress/components';
import Container from '../ReusableComponents/Container';
import SettingsCard from '../ReusableComponents/SettingsCard';
2025-01-14 12:36:03 +01:00
import SettingsNavigation from './Settings/Components/Navigation';
const SendOnlyMessage = () => {
const settingsPageUrl = '/wp-admin/admin.php?page=wc-settings';
return (
<>
<SettingsNavigation canSave={ false } />
<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 */
__(
2025-01-14 12:36:03 +01:00
'To activate PayPal, please <a href="%1$s">update your WooCommerce store location</a> to a supported region and connect a PayPal account eligible for receiving payments.',
'woocommerce-paypal-payments'
),
settingsPageUrl
),
} }
/>
<div>
<Button
href={ settingsPageUrl }
variant="primary"
className="small-button"
>
{ __(
'Go to WooCommerce settings',
'woocommerce-paypal-payments'
) }
</Button>
</div>
</SettingsCard>
</Container>
</>
);
};
export default SendOnlyMessage;