diff --git a/src/include/class-wc-retailcrm-orders.php b/src/include/class-wc-retailcrm-orders.php index 9de5935..9ad84e6 100644 --- a/src/include/class-wc-retailcrm-orders.php +++ b/src/include/class-wc-retailcrm-orders.php @@ -408,12 +408,10 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) : 'amount' => $order->get_total() ); - if ($update) - { + if ($update) { $payment['externalId'] = $externalId; } - else - { + else { $payment['externalId'] = $order->get_id() . uniqid('-'); }