Hosting - Upgrade account

An error occured talking to coinpayments

'; }else{ ?>
Desired upgrade
Desired payment currency
Sorry, looks like you didn't select a valid upgrade.

"; }elseif(!isset($rates[$_POST['currency']]) || $rates[$_POST['currency']]['accepted'] !== 1 || !in_array('payments', $rates[$_POST['currency']]['capabilities'])){ echo "

Sorry, looks like you didn't select a valid payment currency.

"; }else{ $db = get_db_instance(); $transaction = coinpayments_create_transaction($_POST['currency'], ACCOUNT_UPGRADES[$_POST['upgrade']]['usd_price'], $_POST['upgrade'], $user['id']); if($transaction === false){ echo "

An error occured creating the transaction, please try again

"; }else{ echo "

Please pay $transaction[amount] $_POST[currency] to $transaction[address]

"; echo 'QR Code'; echo '

Once paid, it can take a while until the upgrade is applied to your account. Usually within an hour.

'; } } } ?>

Go back to dashboard.