Removed logging code causing exceptions to be
thrown when getBody() was called on an invalid invoice object.
This commit is contained in:
parent
1226a52352
commit
8ec543dd54
|
@ -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.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue