1
0
mirror of synced 2025-02-21 09:23:14 +03:00

Fixed bug of sending incorrect externalId when editing payment 2

This commit is contained in:
Konstantin 2019-03-14 15:54:25 +03:00
parent c82faf616a
commit da3a828560

View File

@ -408,12 +408,10 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) :
'amount' => $order->get_total()
);
if ($update)
{
if ($update) {
$payment['externalId'] = $externalId;
}
else
{
else {
$payment['externalId'] = $order->get_id() . uniqid('-');
}