Include subscriptions flag and ADVANCED_VAULTING for BCDC onboarding

This commit is contained in:
Narek Zakarian 2025-03-11 19:05:40 +04:00
parent abd446a1e3
commit 228375e15b
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -67,6 +67,14 @@ export const determineProductsAndCaps = ( state ) => {
* The store uses the Express-checkout product. * The store uses the Express-checkout product.
*/ */
apiModules.push( PAYPAL_PRODUCTS.BCDC ); apiModules.push( PAYPAL_PRODUCTS.BCDC );
if ( products?.includes( PRODUCT_TYPES.SUBSCRIPTIONS ) ) {
options.useSubscriptions = true;
}
if ( canUseVaulting ) {
apiModules.push( PAYPAL_PRODUCTS.VAULTING );
}
} else if ( isCasualSeller ) { } else if ( isCasualSeller ) {
/** /**
* Branch 2: Merchant has no business. * Branch 2: Merchant has no business.