AccountLinkService.php 718 B

12345678910111213141516171819202122232425
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service;
  4. class AccountLinkService extends \Stripe\Service\AbstractService
  5. {
  6. /**
  7. * Creates an AccountLink object that includes a single-use Stripe URL that the
  8. * platform can redirect their user to in order to take them through the Connect
  9. * Onboarding flow.
  10. *
  11. * @param null|array $params
  12. * @param null|array|\Stripe\Util\RequestOptions $opts
  13. *
  14. * @throws \Stripe\Exception\ApiErrorException if the request fails
  15. *
  16. * @return \Stripe\AccountLink
  17. */
  18. public function create($params = null, $opts = null)
  19. {
  20. return $this->request('post', '/v1/account_links', $params, $opts);
  21. }
  22. }