ConfigurationService.php
2 years ago
ConnectionTokenService.php
4 years ago
LocationService.php
2 years ago
ReaderService.php
2 years ago
TerminalServiceFactory.php
2 years ago
ConnectionTokenService.php
26 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace Stripe\Service\Terminal; |
| 6 | |
| 7 | class ConnectionTokenService extends \Stripe\Service\AbstractService |
| 8 | { |
| 9 | /** |
| 10 | * To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived |
| 11 | * connection token from Stripe, proxied through your server. On your backend, add |
| 12 | * an endpoint that creates and returns a connection token. |
| 13 | * |
| 14 | * @param null|array $params |
| 15 | * @param null|array|\Stripe\Util\RequestOptions $opts |
| 16 | * |
| 17 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 18 | * |
| 19 | * @return \Stripe\Terminal\ConnectionToken |
| 20 | */ |
| 21 | public function create($params = null, $opts = null) |
| 22 | { |
| 23 | return $this->request('post', '/v1/terminal/connection_tokens', $params, $opts); |
| 24 | } |
| 25 | } |
| 26 |