FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
SimPay-API-php/src/Configuration.php at main · SimPaypl/SimPay-API-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
SimPaypl
/
SimPay-API-php
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
SimPay-API-php
/
src
/
Configuration.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (27 loc) · 769 Bytes
Breadcrumbs
SimPay-API-php
/
src
/
Configuration.php
Copy path
File metadata and controls
33 lines (27 loc) · 769 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
<?php
declare
(strict_types=
1
);
namespace
Simpay
;
class
Configuration
{
public
const
API_BASE_URI
=
'
https://api.simpay.pl
'
;
public
const
VERSION
=
'
4.0.0
'
;
private
string
$
apiKey
;
private
string
$
apiPassword
;
private
string
$
lang
;
public
function
__construct
(
string
$
apiKey
,
string
$
apiPassword
,
string
$
lang
=
'
en
'
)
{
$
this
->
apiKey
=
$
apiKey
;
$
this
->
apiPassword
=
$
apiPassword
;
$
this
->
lang
=
$
lang
;
}
public
function
getAuthHeader
():
array
{
return
[
'
X-SIM-KEY
'
=>
$
this
->
apiKey
,
'
X-SIM-PASSWORD
'
=>
$
this
->
apiPassword
,
'
X-SIM-LANG
'
=>
$
this
->
lang
,
'
X-SIM-VERSION
'
=>
self
::
VERSION
,
'
X-SIM-PLATFORM
'
=>
'
PHP
'
,
];
}
}
Back
|
FazBrowse Home
|
New Git URL