Removed logging code causing exceptions to be

thrown when getBody() was called on an invalid invoice object.
This commit is contained in:
Rich Morgan 2015-01-05 14:43:04 -05:00
parent 1226a52352
commit 8ec543dd54
1 changed files with 0 additions and 6 deletions

View File

@ -58,12 +58,6 @@ class Bitpay_Core_Model_Method_Bitcoin extends Mage_Payment_Model_Method_Abstrac
$bitpayInvoice = Mage::helper('bitpay')->getBitpayClient()->createInvoice($invoice); $bitpayInvoice = Mage::helper('bitpay')->getBitpayClient()->createInvoice($invoice);
} catch (Exception $e) { } catch (Exception $e) {
$this->debugData('[ERROR] In Bitpay_Core_Model_Method_Bitcoin::authorize(): ' . $e->getMessage()); $this->debugData('[ERROR] In Bitpay_Core_Model_Method_Bitcoin::authorize(): ' . $e->getMessage());
$this->debugData(
array(
Mage::helper('bitpay')->getBitpayClient()->getRequest()->getBody(),
Mage::helper('bitpay')->getBitpayClient()->getResponse()->getBody(),
)
);
Mage::throwException('In Bitpay_Core_Model_Method_Bitcoin::authorize(): Could not authorize transaction.'); Mage::throwException('In Bitpay_Core_Model_Method_Bitcoin::authorize(): Could not authorize transaction.');
} }