Skip to content

Instantly share code, notes, and snippets.

@SecurityForUs
Created September 27, 2012 00:34
Show Gist options
  • Save SecurityForUs/3791490 to your computer and use it in GitHub Desktop.
Save SecurityForUs/3791490 to your computer and use it in GitHub Desktop.
bah
try{
$trans = $mp->debits->query()->filter(Balanced\Debit::$f->transaction_number->eq($_POST['id']))->one();
//} catch(Balanced\Exceptions\HTTPError $e){
// die(json_encode(array("error" => "No transaction found.")));
} catch(Balanced\Exceptions\MultipleResultsFound $e){
print_r($e);die;
//die(json_encode(array("error" => "No transaction found.")));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment