ClientToken.php
1.12 KB
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
45
46
47
48
49
<?php
namespace Braintree;
class ClientToken
{
const DEFAULT_VERSION = 2;
// static methods redirecting to gateway
/**
*
* @param array $params
* @return string
*/
public static function generate($params=[])
{
return Configuration::gateway()->clientToken()->generate($params);
}
/**
*
* @param type $params
* @throws InvalidArgumentException
*/
public static function conditionallyVerifyKeys($params)
{
return Configuration::gateway()->clientToken()->conditionallyVerifyKeys($params);
}
/**
*
* @return string client token retrieved from server
*/
public static function generateWithCustomerIdSignature()
{
return Configuration::gateway()->clientToken()->generateWithCustomerIdSignature();
}
/**
*
* @return string client token retrieved from server
*/
public static function generateWithoutCustomerIdSignature()
{
return Configuration::gateway()->clientToken()->generateWithoutCustomerIdSignature();
}
}
class_alias('Braintree\ClientToken', 'Braintree_ClientToken');