Show methods screen and show non acdc info in playment flow component

This commit is contained in:
Emili Castells Guasch 2025-02-24 17:42:10 +01:00
parent a540c80b3d
commit 3f57f50078
2 changed files with 2 additions and 8 deletions

View file

@ -76,16 +76,12 @@ const PaymentStepTitle = () => {
const OptionalMethodDescription = () => {
const { storeCountry, storeCurrency } = CommonHooks.useWooSettings();
const { isCasualSeller } = OnboardingHooks.useBusiness();
const { canUseCardPayments } = OnboardingHooks.useFlags();
/**
* Casual sellers = Personal accounts. Those accounts have no ACDC-capabilities, but should get
* the choice for BCDC-payments.
*/
return (
<PaymentFlow
onlyOptional={ true }
useAcdc={ ! isCasualSeller }
useAcdc={ canUseCardPayments }
isFastlane={ true }
isPayLater={ true }
storeCountry={ storeCountry }

View file

@ -59,8 +59,6 @@ export const getSteps = ( flags ) => {
const steps = filterSteps( ALL_STEPS, [
// Casual selling: Unlock the "Personal Account" choice.
( step ) => flags.canUseCasualSelling || step.id !== 'business',
// Card payments: Unlocks the "Extended Checkout" choice.
( step ) => flags.canUseCardPayments || step.id !== 'methods',
] );
const totalStepsCount = steps.length;