Skip to content

Instantly share code, notes, and snippets.

@janhartigan
Created March 20, 2014 00:05
Show Gist options
  • Save janhartigan/9654447 to your computer and use it in GitHub Desktop.
Save janhartigan/9654447 to your computer and use it in GitHub Desktop.
/**
* Gets a Balanced bank account verification object
*
* @param string $verification_id
*
* @return mixed false | \Balanced\BankAccountVerification
*/
protected function getBankAccountVerification($verification_id)
{
try
{
return BankAccountVerification::get($this->buildBankAccountVerificationUri($verification_id));
}
catch (BalancedError $e)
{
return false;
}
}
/**
* Builds the full bank account URI
*
* @param string $verification_id
*
* @return string
*/
protected function buildBankAccountVerificationUri($verification_id)
{
return '/verifications/' . $verification_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment