mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Show methods screen and show non acdc info in playment flow component
This commit is contained in:
parent
a540c80b3d
commit
3f57f50078
2 changed files with 2 additions and 8 deletions
|
@ -76,16 +76,12 @@ const PaymentStepTitle = () => {
|
||||||
|
|
||||||
const OptionalMethodDescription = () => {
|
const OptionalMethodDescription = () => {
|
||||||
const { storeCountry, storeCurrency } = CommonHooks.useWooSettings();
|
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 (
|
return (
|
||||||
<PaymentFlow
|
<PaymentFlow
|
||||||
onlyOptional={ true }
|
onlyOptional={ true }
|
||||||
useAcdc={ ! isCasualSeller }
|
useAcdc={ canUseCardPayments }
|
||||||
isFastlane={ true }
|
isFastlane={ true }
|
||||||
isPayLater={ true }
|
isPayLater={ true }
|
||||||
storeCountry={ storeCountry }
|
storeCountry={ storeCountry }
|
||||||
|
|
|
@ -59,8 +59,6 @@ export const getSteps = ( flags ) => {
|
||||||
const steps = filterSteps( ALL_STEPS, [
|
const steps = filterSteps( ALL_STEPS, [
|
||||||
// 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',
|
||||||
// Card payments: Unlocks the "Extended Checkout" choice.
|
|
||||||
( step ) => flags.canUseCardPayments || step.id !== 'methods',
|
|
||||||
] );
|
] );
|
||||||
|
|
||||||
const totalStepsCount = steps.length;
|
const totalStepsCount = steps.length;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue