forked from stripe/stripe-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathToken.php
44 lines (41 loc) · 923 Bytes
/
Token.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace Stripe;
/**
* Class Token
*
* @property string $id
* @property string $object
* @property mixed $bank_account
* @property mixed $card
* @property mixed $client_ip
* @property int $created
* @property bool $livemode
* @property string $type
* @property bool $used
*
* @package Stripe
*/
class Token extends ApiResource
{
/**
* @param array|string $id The ID of the token to retrieve, or an options
* array containing an `id` key.
* @param array|string|null $opts
*
* @return Token
*/
public static function retrieve($id, $opts = null)
{
return self::_retrieve($id, $opts);
}
/**
* @param array|null $params
* @param array|string|null $opts
*
* @return Token The created token.
*/
public static function create($params = null, $opts = null)
{
return self::_create($params, $opts);
}
}