function checkoutWithBTC($total, $cart) { $response = null; try { $btc = new BTC(); $response = $btc->doPayment($total); } catch (Exception $e) { Logger::i()->writeLog("Caught Exception: " . $e->getMessage(), 'dev'); die; } Logger::i()->writeLog("Start Bitcoin Checkout with address = " . $response['btcaddress']); return $response; }