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:
Narek Zakarian 2025-03-31 13:31:20 +04:00
parent 7050b92a39
commit 8da8a44f81
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7
3 changed files with 20 additions and 8 deletions

View file

@ -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( '' );