-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpayfort.php
111 lines (101 loc) · 3.36 KB
/
payfort.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
return [
/*
|--------------------------------------------------------------------------
| Payment Methods
|--------------------------------------------------------------------------
|
| This value is used to tell the sdk which method you want to used for
| the payments, at this time only "Merchant Page 2" is in working
| following will be available soon.
|
| redirection, merchant page, naps, sadad
|
*/
'payment_method' => env('PAYFORT_PAYMENT_METHOD', 'merchant_page_2'),
/*
|--------------------------------------------------------------------------
| Access Code
|--------------------------------------------------------------------------
|
| This value is used to check and authenticate your
| request on the Payfort
|
| Example: zx0IPmPy5jp1vAz8Kpg7
|
*/
'access_code' => env('PAYFORT_ACCESS_CODE', 'nzgQBkXBmDfGIoDKDI8V'),
/*
|--------------------------------------------------------------------------
| Merchant Identifier
|--------------------------------------------------------------------------
|
| This value is the unique identity of your
| application on the Payfort
|
*/
'merchant_identifier' => env('PAYFORT_MERCHANT_IDENTIFIER', 'FudxRueQ'),
/*
|--------------------------------------------------------------------------
| SHA Request Phrase
|--------------------------------------------------------------------------
|
| This value is use to create the signature on all request
| your application is making to the Payfort
|
*/
'sha_request_phrase' => env('PAYFORT_SHA_REQUEST_PHRASE', 'TESTSHAIN'),
/*
|--------------------------------------------------------------------------
| SHA Response Phrase
|--------------------------------------------------------------------------
|
| This value is use to verify the signature of all responses
| coming to you application from the Payfort
|
*/
'sha_response_phrase' => env('PAYFORT_RESPONSE_PHRASE', 'TESTSHAOUT'),
/*
|--------------------------------------------------------------------------
| Language
|--------------------------------------------------------------------------
|
| The language for the checkout page
| and the messages
|
*/
'language' => env('PAYFORT_LANGUAGE', 'en'),
/*
|--------------------------------------------------------------------------
| Currency
|--------------------------------------------------------------------------
|
| The currency of the transaction’s amount in ISO code 3.
|
| E.g AED, KWD
|
*/
'currency' => env('PAYFORT_CURRENCY', 'KWD'),
/*
|--------------------------------------------------------------------------
| Encryption
|--------------------------------------------------------------------------
|
| The type of the secure hash table
|
| Available values are sha128, sha256
|
*/
'encryption' => 'sha256',
/*
|--------------------------------------------------------------------------
| Sandbox Mode
|--------------------------------------------------------------------------
|
| The environment of you application
|
| Available values are sha128, sha256
|
*/
'sandbox_mode' => env('PAYFORT_SANDBOX_MODE', 1),
];