Removed extra error handler calls
This commit is contained in:
parent
3c5667a2a5
commit
58e1854a5d
|
@ -75,12 +75,8 @@ class Bitpay_Bitcoins_Block_Iframe extends Mage_Checkout_Block_Onepage_Payment {
|
||||||
//serialize info about the quote to detect changes
|
//serialize info about the quote to detect changes
|
||||||
$hash = $method->getQuoteHash($quoteId);
|
$hash = $method->getQuoteHash($quoteId);
|
||||||
|
|
||||||
Mage::log('invoicing for '.$price.' '.$quote->getQuoteCurrencyCode(), NULL, 'bitpay.log');
|
|
||||||
|
|
||||||
$invoice = bpCreateInvoice($quoteId, $price, array('quoteId' => $quoteId, 'quoteHash' => $hash), $options);
|
$invoice = bpCreateInvoice($quoteId, $price, array('quoteId' => $quoteId, 'quoteHash' => $hash), $options);
|
||||||
|
|
||||||
Mage::log($invoice, NULL, 'bitpay.log');
|
|
||||||
|
|
||||||
if (array_key_exists('error', $invoice)) {
|
if (array_key_exists('error', $invoice)) {
|
||||||
Mage::log('Error creating bitpay invoice', null, 'bitpay.log');
|
Mage::log('Error creating bitpay invoice', null, 'bitpay.log');
|
||||||
Mage::log($invoice['error'], null, 'bitpay.log');
|
Mage::log($invoice['error'], null, 'bitpay.log');
|
||||||
|
|
Loading…
Reference in New Issue