BankAccount.php 546 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Stripe;
  3. /**
  4. * Class BankAccount
  5. *
  6. * @package Stripe
  7. */
  8. class BankAccount extends ExternalAccount
  9. {
  10. /**
  11. * @param array|null $params
  12. * @param array|string|null $options
  13. *
  14. * @return BankAccount The verified bank account.
  15. */
  16. public function verify($params = null, $options = null)
  17. {
  18. $url = $this->instanceUrl() . '/verify';
  19. list($response, $opts) = $this->_request('post', $url, $params, $options);
  20. $this->refreshFrom($response, $opts);
  21. return $this;
  22. }
  23. }