👔 Update the product generation logic

Vaulting is only available to business sellers
This commit is contained in:
Philipp Stracker 2025-03-05 16:01:42 +01:00
parent 51fd3b3707
commit db1fc28d47
No known key found for this signature in database

View file

@ -85,13 +85,13 @@ export const determineProductsAndCaps = ( state ) => {
if ( products?.includes( PRODUCT_TYPES.SUBSCRIPTIONS ) ) {
options.useSubscriptions = true;
}
}
options.useCardPayments = cardPaymentsEligibleAndSelected;
if ( canUseVaulting ) {
apiModules.push( PAYPAL_PRODUCTS.VAULTING );
}
}
options.useCardPayments = cardPaymentsEligibleAndSelected;
return { products: apiModules, options };
};