👔 Conditionally enable Apple Pay & Google Pay

This commit is contained in:
Philipp Stracker 2025-02-20 16:01:32 +01:00
parent 1e1acd3b54
commit 371b8634d1
No known key found for this signature in database

View file

@ -225,10 +225,11 @@ class SettingsDataManager {
if ( $flags->use_card_payments ) {
// Enable ACDC for business sellers.
$this->payment_methods->toggle_method_state( CreditCardGateway::ID, true );
}
$this->payment_methods->toggle_method_state( ApplePayGateway::ID, true );
$this->payment_methods->toggle_method_state( GooglePayGateway::ID, true );
// Apple Pay and Google Pay depend on the ACDC gateway.
$this->payment_methods->toggle_method_state( ApplePayGateway::ID, true );
$this->payment_methods->toggle_method_state( GooglePayGateway::ID, true );
}
// Enable all APM methods.
foreach ( $methods_apm as $method ) {