mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
♻️ Default conditions: Use new methods
This commit is contained in:
parent
6a011160b1
commit
32af11f94c
1 changed files with 14 additions and 2 deletions
|
@ -174,9 +174,21 @@ class SettingsDataManager {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function toggle_payment_gateways( ConfigurationFlagsDTO $flags ) : void {
|
protected function toggle_payment_gateways( ConfigurationFlagsDTO $flags ) : void {
|
||||||
|
/*
|
||||||
|
TODO: Implement those conditions:
|
||||||
|
|
||||||
|
| Payment Method | Country | Seller Type | Subscriptions | Cards | Notes |
|
||||||
|
|----------------|---------|-------------|---------------|-------|-------------------------------|
|
||||||
|
| ACDC | US | Business | *any* | ✅ | Greyed out for Casual Sellers |
|
||||||
|
| BCDC | US | *any* | *any* | ✅ | |
|
||||||
|
| Apple Pay | US | Business | *any* | ✅ | Based on feature eligibility |
|
||||||
|
| Google Pay | US | Business | *any* | ✅ | Based on feature eligibility |
|
||||||
|
| All APMs | US | Business | *any* | ✅ | Based on feature eligibility |
|
||||||
|
*/
|
||||||
|
|
||||||
// Always enable Venmo and Pay Later.
|
// Always enable Venmo and Pay Later.
|
||||||
$this->payment_methods->set_venmo_enabled( true );
|
$this->payment_methods->toggle_method_state( 'venmo', true );
|
||||||
$this->payment_methods->set_paylater_enabled( true );
|
$this->payment_methods->toggle_method_state( 'pay-later', true );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue