Skip to content

Commit cb52128

Browse files
committed
Additional headers with informations
1 parent f2a45a5 commit cb52128

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

payments/directbilling.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def __init__(self, api_key, api_password):
1111
self.url = 'https://api.simpay.pl/directbilling'
1212
self.headers = {
1313
'X-SIM-KEY': self.api_key,
14-
'X-SIM-PASSWORD': self.api_password
14+
'X-SIM-PASSWORD': self.api_password,
15+
'X-SIM-VERSION': '1.0',
16+
'X-SIM-PLATFORM': 'PYTHON',
1517
}
1618

1719
# https://docs.simpay.pl/pl/python/?python#directbilling-pobieranie-listy-uslug

payments/sms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ def __init__(self, api_key, api_password):
1010
self.url = 'https://api.simpay.pl/sms'
1111
self.headers = {
1212
'X-SIM-KEY': self.api_key,
13-
'X-SIM-PASSWORD': self.api_password
13+
'X-SIM-PASSWORD': self.api_password,
14+
'X-SIM-VERSION': '1.0',
15+
'X-SIM-PLATFORM': 'PYTHON',
1416
}
1517

1618
# https://docs.simpay.pl/pl/python/?python#sms-pobieranie-listy-uslug

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='simpay-api',
7-
version='2.1',
7+
version='2.1.1',
88
description='Python wrapper for Simpay API',
99
author='Rafał Więcek <[email protected]>',
1010

0 commit comments

Comments
 (0)