mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
No need for checking null
This commit is contained in:
parent
f94273c477
commit
2bb783f58c
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
|
|||
|
||||
$order = $this->api_endpoint->order( $data['order_id'] );
|
||||
|
||||
$payment_source = $order->payment_source() ?? null;
|
||||
$payment_source = $order->payment_source();
|
||||
if ( $payment_source && $payment_source->name() === 'card' ) {
|
||||
if ( $this->settings->has( 'disable_cards' ) ) {
|
||||
$disabled_cards = (array) $this->settings->get( 'disable_cards' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue