1
0
mirror of synced 2025-01-30 23:01:43 +03:00

Merge pull request #100 from Frosin/master

fixed generate payment externalId
This commit is contained in:
Alex Lushpai 2019-05-24 12:04:05 +03:00 committed by GitHub
commit 3a0ee18ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(