From 7cdab05aa27076001f8f7952cb7f3573d6238939 Mon Sep 17 00:00:00 2001 From: Yura Date: Mon, 28 Dec 2020 11:06:01 +0300 Subject: [PATCH] Add prefix to externalId payment (#217) --- .../library/retailcrm/lib/service/RetailcrmOrderConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload/system/library/retailcrm/lib/service/RetailcrmOrderConverter.php b/src/upload/system/library/retailcrm/lib/service/RetailcrmOrderConverter.php index 54172ce..658bc7a 100644 --- a/src/upload/system/library/retailcrm/lib/service/RetailcrmOrderConverter.php +++ b/src/upload/system/library/retailcrm/lib/service/RetailcrmOrderConverter.php @@ -109,7 +109,7 @@ class RetailcrmOrderConverter { } $payment = array( - 'externalId' => sprintf("opencart_%d", $this->order_data['order_id']), + 'externalId' => uniqid($this->order_data['order_id'] . "-"), 'amount' => $this->getTotal('total') );