EveryThing works fine except the admin dont know when an order has been placed and the user doesnt know if the order has been placed because there is no transaction notices. I use poormanscron.

Comments

gordon’s picture

Category: support » bug

I found this the other day with my own payment module for St George Bank here in Australia. The paymentapi is required to call store_email_invoice(). the cod module does not do this.

matt westgate’s picture

Assigned: Unassigned » matt westgate
Category: bug » feature
Priority: Critical » Normal

I have backported this feature from HEAD.

Anonymous’s picture

Anonymous’s picture

christolear’s picture

Category: feature » bug
Priority: Normal » Critical
Status: Fixed » Active

Module still does not send invoice out when purchase through COD. Is there a new file to download?

christolear’s picture

Version: » 4.6.x-1.x-dev

I would appreciate a little more information on how this problem has been handled. I have implemented ecommerce for a computer show that I am chairing. When people use the cod method of payment, they do not get an invoice or any notice that they have completed a transaction. Nothing is sent to me as an administrator. This is quite frustrating.

Right now I am working around the problem by creating some php code to execute the store_send_invoice_email($txnid) function by hand and this must be done everytime someone makes a purchase. Not very accurate. I have tried to follow the code and I get as far as the payment_submit module where it calls a "payment_method"_paymentapi function. However, there is no cod_paymentapi function. I have rearranged this so the invoice comes first to no avail. In following the $edit['txnid'] = store_transaction_save($edit); code, I find repeated references to the non-existent cod_paymentapi. I have no idea where this falls down but this little issue will determine whether or not my group continues to use and recommend drupal for activities such as ours.

I would appreciate a response to my previous post since it is now over a month old.

Thank you.

thekenshow’s picture

I'm using e-commerce 4.6.0 and Drupal 4.6.2 with COD as the only payment option. Both customer and admin notification are working here, but it took me a while to realize that the administrator receives a transaction summary email and not a copy of the customer invoice email. This transaction summary does not list a sale unless the payment status is "completed", however the cod module sets the payment status to "pending" by default.

This can be changed, so payment status is set to "completed" when an order is placed, by uncommenting two lines in cod.module. The lines are in the cod_goto function and they are clearly marked. As a final note, if there is no transaction with a "completed" payment status, the transaction summary is not sent at all.

gordon’s picture

Status: Active » Closed (works as designed)

The cod module does send out an invoice if the "Mark transaction as paid?" is set to yes.

If it is not set to yes then the issue I think is that when the "Mark transaction as paid?" is set to no I do not think that there is not another oportunity to for the cod module to send the invoice.