Removed extra error handler calls

This commit is contained in:
Rich Morgan 2014-05-16 01:23:40 -04:00
parent 3c5667a2a5
commit 58e1854a5d
1 changed files with 0 additions and 4 deletions

View File

@ -75,12 +75,8 @@ class Bitpay_Bitcoins_Block_Iframe extends Mage_Checkout_Block_Onepage_Payment {
//serialize info about the quote to detect changes
$hash = $method->getQuoteHash($quoteId);
Mage::log('invoicing for '.$price.' '.$quote->getQuoteCurrencyCode(), NULL, 'bitpay.log');
$invoice = bpCreateInvoice($quoteId, $price, array('quoteId' => $quoteId, 'quoteHash' => $hash), $options);
Mage::log($invoice, NULL, 'bitpay.log');
if (array_key_exists('error', $invoice)) {
Mage::log('Error creating bitpay invoice', null, 'bitpay.log');
Mage::log($invoice['error'], null, 'bitpay.log');