| @@ -286,15 +286,8 @@ | ||
| 286 | 286 | $check_status = false; |
| 287 | 287 | } |
| 288 | 288 | } |
| 289 | 289 | |
| 290 | - // Lock processing for this order+status to avoid race conditions between callback and redirect | |
| 291 | - $lock_key = '_makecommerce_payment_lock_status_' . $paymentStatus; | |
| 292 | - $locked = add_post_meta( $orderId, $lock_key, time(), true ); | |
| 293 | - if ( ! $locked ) { | |
| 294 | - return $returnUrl; | |
| 295 | - } | |
| 296 | - | |
| 297 | 290 | //check if we already processed this status in the past. |
| 298 | 291 | if ( $check_status && $order->get_meta( '_makecommerce_payment_processed_status', true ) == $paymentStatus ) { |
| 299 | 292 | return $returnUrl; |
| 300 | 293 | } |