'._('An error occurred talking to coinpayments').'

'; }else{ ?>
'._("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 occurred creating the transaction, please try again').'

'; }else{ echo '

'.sprintf(_('Please pay %1$s to %2$s'), "$transaction[amount] $_POST[currency]", $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.').'

'; } } } ?>