mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Merge pull request #3547 from woocommerce/PCP-4425-react-onboarding-wizard-step-4-should-be-skipped
Skip "Payment Methods" step for branded-only + BCDC and casual sellers (4425)
This commit is contained in:
commit
af18a7bcdd
1 changed files with 13 additions and 4 deletions
|
@ -64,10 +64,19 @@ export const getSteps = ( flags ) => {
|
||||||
// Casual selling: Unlock the "Personal Account" choice.
|
// Casual selling: Unlock the "Personal Account" choice.
|
||||||
( step ) => flags.canUseCasualSelling || step.id !== 'business',
|
( step ) => flags.canUseCasualSelling || step.id !== 'business',
|
||||||
// Skip payment methods screen.
|
// Skip payment methods screen.
|
||||||
( step ) =>
|
( step ) => {
|
||||||
step.id !== 'methods' ||
|
if ( step.id !== 'methods' ) {
|
||||||
( ! flags.shouldSkipPaymentMethods &&
|
return true;
|
||||||
! ( ownBrandOnly && isCasualSeller ) ),
|
}
|
||||||
|
|
||||||
|
const isBrandedBCDC = ownBrandOnly && ! flags.canUseCardPayments;
|
||||||
|
const shouldSkip =
|
||||||
|
flags.shouldSkipPaymentMethods ||
|
||||||
|
isCasualSeller ||
|
||||||
|
isBrandedBCDC;
|
||||||
|
|
||||||
|
return ! shouldSkip;
|
||||||
|
},
|
||||||
] );
|
] );
|
||||||
|
|
||||||
const totalStepsCount = steps.length;
|
const totalStepsCount = steps.length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue