Created
March 20, 2014 00:05
-
-
Save janhartigan/9654447 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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