Fuente: https://github.com/chamilo/chamilo-lms/releases/download/v1.11.40/chamilo-1.11.40.zip sha256: 1cf4bf2cc7bae1ef1a1eff643235db1d552f78ddf4b6dd1e2d2dac9868679439 Snapshot independiente (rama huerfana); diffable vs 1.11.38. vendor incluido.
31 lines
1016 B
PHP
31 lines
1016 B
PHP
<?php
|
|
|
|
// File generated from our OpenAPI spec
|
|
|
|
namespace Stripe\Service\Terminal;
|
|
|
|
/**
|
|
* @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
|
*
|
|
* @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
|
|
*/
|
|
class ConnectionTokenService extends \Stripe\Service\AbstractService
|
|
{
|
|
/**
|
|
* To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived
|
|
* connection token from Stripe, proxied through your server. On your backend, add
|
|
* an endpoint that creates and returns a connection token.
|
|
*
|
|
* @param null|array{expand?: string[], location?: string} $params
|
|
* @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
|
|
*
|
|
* @return \Stripe\Terminal\ConnectionToken
|
|
*
|
|
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
|
*/
|
|
public function create($params = null, $opts = null)
|
|
{
|
|
return $this->request('post', '/v1/terminal/connection_tokens', $params, $opts);
|
|
}
|
|
}
|