Paypal Pro Payment Issue - Failed Orders, Message Duplicate Invoice Id

CS-CART: version 2.1.4 PROFESSIONAL

Payment processor response: The transaction was refused as a result of a duplicate invoice ID supplied. Attempt with a new invoice ID

Customer orders "Fail". Any suggestions what can be issue and fix.

TIA

payments/paypal_pro.php

try to add this line of code:

$paypal_order_id = $paypal_order_id . '_' . TIME;

after this one:

$paypal_order_id = $processor_data['params']['order_prefix'] . (($order_info['repaid']) ? ($order_id . '_' . $order_info['repaid']) : $order_id);

If it does not help, additional examination is required directly on your server