SetupAttemptService.php 611 B

1234567891011121314151617181920212223
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service;
  4. class SetupAttemptService extends \Stripe\Service\AbstractService
  5. {
  6. /**
  7. * Returns a list of SetupAttempts associated with a provided SetupIntent.
  8. *
  9. * @param null|array $params
  10. * @param null|array|\Stripe\Util\RequestOptions $opts
  11. *
  12. * @throws \Stripe\Exception\ApiErrorException if the request fails
  13. *
  14. * @return \Stripe\Collection
  15. */
  16. public function all($params = null, $opts = null)
  17. {
  18. return $this->requestCollection('get', '/v1/setup_attempts', $params, $opts);
  19. }
  20. }