mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
👔 Conditionally enable Apple Pay & Google Pay
This commit is contained in:
parent
1e1acd3b54
commit
371b8634d1
1 changed files with 4 additions and 3 deletions
|
@ -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 ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue