Fixed bug of sending incorrect externalId when editing payment 2
This commit is contained in:
parent
c82faf616a
commit
da3a828560
@ -408,12 +408,10 @@ if ( ! class_exists( 'WC_Retailcrm_Orders' ) ) :
|
|||||||
'amount' => $order->get_total()
|
'amount' => $order->get_total()
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($update)
|
if ($update) {
|
||||||
{
|
|
||||||
$payment['externalId'] = $externalId;
|
$payment['externalId'] = $externalId;
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
{
|
|
||||||
$payment['externalId'] = $order->get_id() . uniqid('-');
|
$payment['externalId'] = $order->get_id() . uniqid('-');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user