<?php
// File generated from our OpenAPI spec
namespace Stripe\Terminal;
/**
* A Connection Token is used by the Stripe Terminal SDK to connect to a reader.
*
* Related guide: <a href="https://stripe.com/docs/terminal/fleet/locations">Fleet management</a>
*
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property null|string $location The id of the location that this connection token is scoped to. Note that location scoping only applies to internet-connected readers. For more details, see <a href="https://stripe.com/docs/terminal/fleet/locations#connection-tokens">the docs on scoping connection tokens</a>.
* @property string $secret Your application should pass this token to the Stripe Terminal SDK.
*/
class ConnectionToken extends \Stripe\ApiResource
{
const OBJECT_NAME = 'terminal.connection_token';
use \Stripe\ApiOperations\Create;
}
Checks the status of a payment.
**Response: SUCCESS (200 OK)**
{
"message": {
"success": [
"Success"
]
},
"data": {
"token": "2zMRmT3KeYT2BWMAyGhqEfuw4tOYOfGXKeyKqehZ8mF1E35hMwE69gPpyo3e",
"trx_id": "CP44657864",
"payer": {
"username": "testuser",
"email": "user@appdevs.net"
}
"status": "Test",
},
"type": "success"
}