Authorize.net Response Code 4 Support

Currently when a response code 4 comes back from authorize.net, the transaction fails. HOWEVER it gets assigned the next order number from ZenCart. The Merchant than either approves or declines in Authorize.net. However the order doesn't appear in ZenCart. Even worse the next order in Zencart is assigned the next available order number (which is the same as that assigned to the failed transaction then). This leads to the first transaction, not being present and having to be entered manually. And also 2 orders with the same order number, in Authorize.net. So this solution creates the order number and assigns it a order status selected by the admin. So the order is created. However the merchant will still need to go into authorize.net and either approve or decline the transaction. Ideally there should be 3 more features. 1- Approve or decline the transaction from Zencart. 2- Offer the ability to email the shop owner in the event of the response code 4. 3- A special notification to the customer that their order is received but requires further review by the merchant.