Skip "Payment Methods" step for branded-only + BCDC and casual sellers.

This commit is contained in:
Narek Zakarian 2025-07-22 18:24:17 +04:00
parent a8dfe57165
commit ecb46a9ec7
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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;