mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Include subscriptions flag and ADVANCED_VAULTING
for BCDC onboarding
This commit is contained in:
parent
abd446a1e3
commit
228375e15b
1 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue