mirror of
https://git.wownero.com/wownero/wownerowp.git
synced 2024-08-15 01:03:16 +00:00
Update monero_payments.php
This commit is contained in:
parent
acc9dd051d
commit
db265e5dee
1 changed files with 5 additions and 0 deletions
|
@ -397,6 +397,11 @@ public function add_my_currency_symbol( $currency_symbol, $currency ) {
|
|||
}
|
||||
public function getamountinfo(){
|
||||
$wallet_amount = $this->monero_daemon->getbalance();
|
||||
if(isset($wallet_amount)){
|
||||
$this->log->add('Monero_gateway','[ERROR] Connection wi$
|
||||
$wallet_amount['balance'] = "0";
|
||||
$wallet_amount['unlocked_balance'] = "0";
|
||||
}
|
||||
$real_wallet_amount = $wallet_amount['balance'] / 1000000000000;
|
||||
$real_amount_rounded = round($real_wallet_amount, 6);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue