
Originally Posted by
swguy
Query I used for tracking down anomalies:
select c.orders_id, c.payment_name, o.customers_name, o.payment_module_code from authorize_cim_payments c, orders o where o.orders_id = c.orders_id;
be suspicious of entries where payment_module_code is not authorize_cim *or* the two name fields don't match - they could be problems.
@swguy, you have a lot of things going on here; most of which look to be of your own doing.
looking at your sql statement above, is rather curious. you are telling me that you have records in the authorize_cim_payments table where the order has a different payment module? how could that be?
those are both rhetorical questions, of which i am not looking for an answer.
years ago, i started a discussion about creating a payments table/abstract payment class that other payment modules could use to store payment records. but alas, that never resulted in any new code in the repo...
the fact that you are writing payment records to that table has nothing to do with this payment module.
with regards to the allow money and all of the observer information you are talking about, i would suggest you look for this notifier:
PHP Code:
$zco_notifier->notify('NOTIFY_AUTHNET_PAYMENTS', '', $this);
which can be found here.
i believe you can do everything you want using that notifier.
that is what i do with my clients.
best.