Implement the “useCardPayments” option

This commit is contained in:
Philipp Stracker 2025-02-27 19:21:29 +01:00
parent bfa101ac24
commit f2f9c1ebcd
No known key found for this signature in database

View file

@ -51,6 +51,7 @@ export const determineProductsAndCaps = ( state ) => {
*/ */
const options = { const options = {
useSubscriptions: false, useSubscriptions: false,
useCardPayments: false,
}; };
const { isCasualSeller, areOptionalPaymentMethodsEnabled, products } = const { isCasualSeller, areOptionalPaymentMethodsEnabled, products } =
@ -83,6 +84,10 @@ export const determineProductsAndCaps = ( state ) => {
} }
} }
if ( canUseCardPayments && areOptionalPaymentMethodsEnabled ) {
options.useCardPayments = true;
}
if ( canUseVaulting ) { if ( canUseVaulting ) {
apiModules.push( 'ADVANCED_VAULTING' ); apiModules.push( 'ADVANCED_VAULTING' );
} }