uniqid для внешнего ID платежа

This commit is contained in:
Day Vladimir 2021-05-27 18:11:45 +02:00 committed by GitHub
parent 93ccd80874
commit d2cf2811f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -289,7 +289,7 @@ class ModelExtensionRetailcrmOrder extends Model {
}
$payment = array(
'externalId' => $order_id,
'externalId' => uniqid($order_id . "-"),
'type' => $payment_code,
'amount' => $totals['total']
);
@ -302,7 +302,7 @@ class ModelExtensionRetailcrmOrder extends Model {
if (!$create) {
$payment['order'] = array(
'externalId' => $order_id
'externalId' => uniqid($order_id . "-"),
);
}