From 2060b29e2035ee025961ba274e4b31aa97c75c41 Mon Sep 17 00:00:00 2001 From: Konstantin Date: Mon, 22 Apr 2019 15:39:14 +0300 Subject: [PATCH] fixed generate payment externalId number --- src/include/order/class-wc-retailcrm-order-payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/order/class-wc-retailcrm-order-payment.php b/src/include/order/class-wc-retailcrm-order-payment.php index da836ee..c6a8402 100644 --- a/src/include/order/class-wc-retailcrm-order-payment.php +++ b/src/include/order/class-wc-retailcrm-order-payment.php @@ -58,7 +58,7 @@ class WC_Retailcrm_Order_Payment extends WC_Retailcrm_Abstracts_Data if (!$this->is_new) { $data['externalId'] = $externalId; } else { - $data['externalId'] = uniqid($order->get_id()); + $data['externalId'] = uniqid($order->get_id() . "-"); } $data['order'] = array(