SessionService.php 604 B

1234567891011121314151617181920212223
  1. <?php
  2. // File generated from our OpenAPI spec
  3. namespace Stripe\Service\BillingPortal;
  4. class SessionService extends \Stripe\Service\AbstractService
  5. {
  6. /**
  7. * Creates a session of the customer portal.
  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\BillingPortal\Session
  15. */
  16. public function create($params = null, $opts = null)
  17. {
  18. return $this->request('post', '/v1/billing_portal/sessions', $params, $opts);
  19. }
  20. }