mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Fix non wc gateway items null enabled key
This commit is contained in:
parent
b74ad84030
commit
30dd654f83
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