mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix phpcs errors
This commit is contained in:
parent
83039ba36b
commit
bc86c8341f
1 changed files with 2 additions and 2 deletions
|
@ -169,8 +169,8 @@ class OrderProcessor {
|
|||
);
|
||||
if ( $order->status()->is( OrderStatus::COMPLETED ) && $order->intent() === 'CAPTURE' ) {
|
||||
|
||||
$purchaseUnitsPaymentsCapturesStatus = $order->purchase_units()[0]->payments()->captures()[0]->status() ?? '';
|
||||
if ( $purchaseUnitsPaymentsCapturesStatus && $purchaseUnitsPaymentsCapturesStatus !== 'DECLINED' ) {
|
||||
$purchase_units_payments_captures_status = $order->purchase_units()[0]->payments()->captures()[0]->status() ?? '';
|
||||
if ( $purchase_units_payments_captures_status && 'DECLINED' !== $purchase_units_payments_captures_status ) {
|
||||
$wc_order->update_status(
|
||||
'processing',
|
||||
__( 'Payment received.', 'woocommerce-paypal-payments' )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue