'._("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 ''._('Once paid, it can take a while until the upgrade is applied to your account. Usually within an hour.').'
'; } } } ?>