Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Declined orders not deleted from database


Recommended Posts

If the order is declined by the gateway it still stays in the database.


Seems like the variable $insert_id is not passed any value:


if ($x_response_code != '1') {

tep_db_query("delete from " . TABLE_ORDERS . " where orders_id = '" . (int)$insert_id . "'"); //Remove order



Any ideas how this can be fixed?



file authorizenet.php

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...