Send new order email after invoice paid
This commit is contained in:
parent
e547cbd6b2
commit
f385778e19
|
@ -156,6 +156,11 @@ class Bitpay_Bitcoins_Model_PaymentMethod extends Mage_Payment_Model_Method_Abst
|
|||
|
||||
$transactionSave->save();
|
||||
$order->addStatusToHistory(Mage_Sales_Model_Order::STATE_COMPLETE);
|
||||
try {
|
||||
$order->sendNewOrderEmail();
|
||||
} catch (Exception $e) {
|
||||
Mage::logException($e);
|
||||
}
|
||||
} else {
|
||||
Mage::log('Count of InvoiceCollection was zero! Order not invoiced.', null, 'bitpay.log');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue