BillingPortalServiceFactory.php
4 years ago
ConfigurationService.php
2 years ago
SessionService.php
4 years ago
SessionService.php
24 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace Stripe\Service\BillingPortal; |
| 6 | |
| 7 | class SessionService extends \Stripe\Service\AbstractService |
| 8 | { |
| 9 | /** |
| 10 | * Creates a session of the customer portal. |
| 11 | * |
| 12 | * @param null|array $params |
| 13 | * @param null|array|\Stripe\Util\RequestOptions $opts |
| 14 | * |
| 15 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 16 | * |
| 17 | * @return \Stripe\BillingPortal\Session |
| 18 | */ |
| 19 | public function create($params = null, $opts = null) |
| 20 | { |
| 21 | return $this->request('post', '/v1/billing_portal/sessions', $params, $opts); |
| 22 | } |
| 23 | } |
| 24 |