echo"Created account $name for '$desc'! View on WePay at <a href=\"$account->account_uri\">$account->account_uri</a>. See all of your accounts <a href=\"accountlist.php\">here</a>.";
}
catch(WePayException$e){
// Something went wrong - normally you would log
// this and give your user a more informative message
echo$e->getMessage();
}
}
else{
echo'Account name and description are both required.';