-
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.
# Conflicts: # modules/ppcp-settings/resources/js/Components/App.js # modules/ppcp-settings/resources/js/Components/Screens/tabs.js
- Loading branch information
Showing
14 changed files
with
173 additions
and
71 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
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
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
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
5 changes: 5 additions & 0 deletions
5
modules/ppcp-settings/resources/js/Components/Screens/Overview/TabPayLaterMessaging.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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const TabPayLaterMessaging = () => { | ||
return <div className="ppcp-r-pay-later-messaging"></div>; | ||
}; | ||
|
||
export default TabPayLaterMessaging; |
54 changes: 54 additions & 0 deletions
54
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 |
---|---|---|
@@ -0,0 +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'; | ||
|
||
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> | ||
</> | ||
); | ||
}; | ||
|
||
export default SendOnlyMessage; |
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
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
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
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
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
Oops, something went wrong.