From 5055bb710cc929f509a9ac83f073ad16ef391152 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Thu, 14 Mar 2019 15:58:36 +0300 Subject: [PATCH] Fixed bug of sending incorrect externalId when editing payment 2 --- src/include/class-wc-retailcrm-orders.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/include/class-wc-retailcrm-orders.php b/src/include/class-wc-retailcrm-orders.php index 9ad84e6..3dbea98 100644 --- a/src/include/class-wc-retailcrm-orders.php +++ b/src/include/class-wc-retailcrm-orders.php @@ -410,8 +410,7 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) : if ($update) { $payment['externalId'] = $externalId; - } - else { + } else { $payment['externalId'] = $order->get_id() . uniqid('-'); }