forked from lemonwaysas/php-client-directkit-xml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ExamplesDatas.php
79 lines (66 loc) · 1.53 KB
/
ExamplesDatas.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?php
namespace LemonWay\Examples;
class ExamplesDatas{
/**
* FILE_UPLOAD Dummy file to upload
* @var string
*/
const FILE_UPLOAD = '../images/lemonway_logo.jpeg';
/**
* CARD_SUCCESS_WITHOUT_3D Card number for a valid test without 3D Secure
* @var string
*/
const CARD_SUCCESS_WITHOUT_3D = '5017670000006700';
/**
* CARD_SUCCESS_WITH_3D Card number for a valid test with 3D Secure
* @var string
*/
const CARD_SUCCESS_WITH_3D = '5017670000001800';
/**
* CARD_ERROR Card number for a failed test
* @var string
*/
const CARD_ERROR = '5017670000000851';
/**
* CARD_DATE Card expiration date
* @var string
*/
const CARD_DATE = '12/2017';
/**
* CARD_CRYPTO Card cryptogram
* @var string
*/
const CARD_CRYPTO = '123';
/**
* IBAN_HOLDER IBAN holder
* @var string
*/
const IBAN_HOLDER = 'My Name';
/**
* IBAN_NUMBER IBAN number
* @var string
*/
const IBAN_NUMBER = 'FR1420041010050500013M02606';
/**
* IBAN_BIC IBAN bic
* @var string
*/
const IBAN_BIC = 'ABCDEFGHIJK';
/**
* IBAN_AD1 IBAN address 1
* @var string
*/
const IBAN_AD1 = 'Center branch';
/**
* IBAN_AD2 IBAN address 2
* @var string
*/
const IBAN_AD2 = 'Paris';
/**
* Generates a random id
* @return string
*/
public static function getRandomId(){
return str_replace('.', '', microtime(true).rand());
}
}