mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Disable card payments for branded casual merchants.
- Passes the `ownBrandOnly` to `determineProductsAndCaps` method to determine if the merchant is casual seller and if in branded only mode. - If the merchant selected personal account type and is in branded only mode then the card payments eligibility will be defined as `false`
This commit is contained in:
parent
7050b92a39
commit
8da8a44f81
3 changed files with 20 additions and 8 deletions
|
@ -31,7 +31,9 @@ export const useHandleOnboardingButton = ( isSandbox ) => {
|
|||
const { onboardingUrl } = isSandbox
|
||||
? CommonHooks.useSandbox()
|
||||
: CommonHooks.useProduction();
|
||||
const { products, options } = OnboardingHooks.useDetermineProducts();
|
||||
const { ownBrandOnly } = CommonHooks.useWooSettings();
|
||||
const { products, options } =
|
||||
OnboardingHooks.useDetermineProducts( ownBrandOnly );
|
||||
const { startActivity } = CommonHooks.useBusyState();
|
||||
const { authenticateWithOAuth } = CommonHooks.useAuthentication();
|
||||
const [ onboardingUrlState, setOnboardingUrl ] = useState( '' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue