mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Merge pull request #3103 from woocommerce/fix/payment-method-enabled-for-non-wc-gateway--items
Fix non wc gateway items null enabled key
This commit is contained in:
commit
ee45ca89ea
1 changed files with 2 additions and 2 deletions
|
@ -710,10 +710,10 @@ class PaymentRestEndpoint extends RestEndpoint {
|
|||
if ( ! isset( $all_gateways[ $key ] ) && isset( $request_data[ $key ] ) ) {
|
||||
switch ( $key ) {
|
||||
case 'venmo':
|
||||
$this->settings->set_venmo_enabled( $request_data[ $key ]['enabled'] );
|
||||
$this->settings->set_venmo_enabled( $request_data[ $key ]['enabled'] ?? false );
|
||||
break;
|
||||
case 'pay-later':
|
||||
$this->settings->set_paylater_enabled( $request_data[ $key ]['enabled'] );
|
||||
$this->settings->set_paylater_enabled( $request_data[ $key ]['enabled'] ?? false );
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue