sources->retrieve('bank_account_id') or " . "\$account->external_accounts->retrieve('bank_account_id') instead."; throw new Error\InvalidRequest($msg, null); } /** * @param string $_id * @param array|null $_params * @param array|string|null $_options * * @throws \Stripe\Error\InvalidRequest */ public static function update($_id, $_params = null, $_options = null) { $msg = "Bank accounts cannot be accessed without a customer ID or account ID. " . "Call save() on \$customer->sources->retrieve('bank_account_id') or " . "\$account->external_accounts->retrieve('bank_account_id') instead."; throw new Error\InvalidRequest($msg, null); } /** * @param array|null $params * @param array|string|null $options * * @return BankAccount The verified bank account. */ public function verify($params = null, $options = null) { $url = $this->instanceUrl() . '/verify'; list($response, $opts) = $this->_request('post', $url, $params, $options); $this->refreshFrom($response, $opts); return $this; } }