mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
remove useless condition part
This commit is contained in:
parent
7bd17838fb
commit
6c17c7463f
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ class OrderProcessor {
|
||||||
$wc_order->update_meta_data( PayPalGateway::INTENT_META_KEY, $order->intent() );
|
$wc_order->update_meta_data( PayPalGateway::INTENT_META_KEY, $order->intent() );
|
||||||
|
|
||||||
$error_message = null;
|
$error_message = null;
|
||||||
if ( ! $order || ! $this->order_is_approved( $order ) ) {
|
if ( ! $this->order_is_approved( $order ) ) {
|
||||||
$error_message = __(
|
$error_message = __(
|
||||||
'The payment has not been approved yet.',
|
'The payment has not been approved yet.',
|
||||||
'woocommerce-paypal-payments'
|
'woocommerce-paypal-payments'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue