-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Settings UI: Adjust send-only country message and notices
- Loading branch information
Showing
2 changed files
with
21 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 13 additions & 11 deletions
24
modules/ppcp-settings/resources/js/Components/Screens/SendOnlyMessage.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import { __, sprintf } from '@wordpress/i18n'; | ||
|
||
const SendOnlyMessage = () => { | ||
return ( | ||
<p> | ||
Your current WooCommerce store location 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 | ||
WooCommerce store location to a supported region and connect a | ||
PayPal account eligible for receiving payments. | ||
</p> | ||
const url = '/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' | ||
), | ||
url | ||
); | ||
|
||
return <p dangerouslySetInnerHTML={ { __html: message } } />; | ||
}; | ||
|
||
export default SendOnlyMessage; |