mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
👔 Update the product generation logic
Vaulting is only available to business sellers
This commit is contained in:
parent
51fd3b3707
commit
db1fc28d47
1 changed files with 4 additions and 4 deletions
|
@ -85,13 +85,13 @@ export const determineProductsAndCaps = ( state ) => {
|
||||||
if ( products?.includes( PRODUCT_TYPES.SUBSCRIPTIONS ) ) {
|
if ( products?.includes( PRODUCT_TYPES.SUBSCRIPTIONS ) ) {
|
||||||
options.useSubscriptions = true;
|
options.useSubscriptions = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( canUseVaulting ) {
|
||||||
|
apiModules.push( PAYPAL_PRODUCTS.VAULTING );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
options.useCardPayments = cardPaymentsEligibleAndSelected;
|
options.useCardPayments = cardPaymentsEligibleAndSelected;
|
||||||
|
|
||||||
if ( canUseVaulting ) {
|
|
||||||
apiModules.push( PAYPAL_PRODUCTS.VAULTING );
|
|
||||||
}
|
|
||||||
|
|
||||||
return { products: apiModules, options };
|
return { products: apiModules, options };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue