Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2012 07:35
Show Gist options
  • Save anonymous/4129827 to your computer and use it in GitHub Desktop.
Save anonymous/4129827 to your computer and use it in GitHub Desktop.
Extended issue
try {
$account = $marketplace->createAccount($email_address);
}
catch (Balanced\Exceptions\HTTPError $e) {
if ($e->category_code == 'duplicate-email-address') {
print_r($mercht
->accounts
->query()
->filter(Balanced\Account::$f->email_address->eq(email_address)));
$account = $mercht
->accounts
->query()
->filter(Balanced\Account::$f->email_address->eq(email_address))
;
$account->credit(100);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment