Skip to content

Commit 2c1c57c

Browse files
committed
2.0 Release
1 parent fe585f6 commit 2c1c57c

File tree

13 files changed

+379
-338
lines changed

13 files changed

+379
-338
lines changed

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
.idea/
2-
.vscode/
31
venv/
4-
*.egg-info/
2+
.idea/
3+
*.iml

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 SimPay.pl
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 4 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,89 +1,5 @@
1-
# python-simpay-api
1+
# SimPay-API-Python
2+
Oficjalny klient do wszystkich API SimPay
23

3-
## SMS
4-
### Weryfikacja kodu
5-
```python
6-
from payments.sms import SMS
7-
8-
sms = SMS("API_KEY", "API_SECRET", "SERVICE_ID")
9-
10-
response = sms.verify_code(request={"code": "XXXXXXX", "number": "XXXXX"})
11-
```
12-
13-
### Pobieranie listy usług
14-
```python
15-
from payments.sms import SMS
16-
17-
sms = SMS("API_KEY", "API_SECRET", "SERVICE_ID")
18-
19-
response = sms.get_service_list(request={})
20-
```
21-
22-
## SMS XML
23-
```python
24-
from payments.sms_xml import SMS_XML
25-
26-
code = SMS_XML.generateCode() # Generate code
27-
```
28-
29-
## Direct Billing
30-
### Generowanie transakcji
31-
```python
32-
from payments.direct_billing import DirectBilling
33-
34-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
35-
36-
response = db.generate_transaction(api_key="XXXXXXXXXXXX",request={"control": "XXXXXX", "amount": 10.00}) # and others variables
37-
```
38-
39-
### Pobieranie danych o transakcji
40-
```python
41-
from payments.direct_billing import DirectBilling
42-
43-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
44-
45-
response = db.get_transaction(request={"id": "TRANSACTION_ID"})
46-
```
47-
48-
### Pobieranie listy usług DCB
49-
```python
50-
from payments.direct_billing import DirectBilling
51-
52-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
53-
54-
response = db.get_services(request={})
55-
```
56-
57-
### Pobieranie maksymalnych kwot transakcji
58-
```python
59-
from payments.direct_billing import DirectBilling
60-
61-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
62-
63-
response = db.get_transaction_limits(request={})
64-
```
65-
66-
### Pobieranie prowizji dla usługi
67-
```python
68-
from payments.direct_billing import DirectBilling
69-
70-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
71-
72-
response = db.get_service_commission(request={})
73-
```
74-
75-
### Pobieranie adresów IP serwerów SimPay
76-
```python
77-
from payments.direct_billing import DirectBilling
78-
79-
ips = DirectBilling.get_servers_ip()
80-
```
81-
82-
### Obliczanie podpisu sign
83-
```python
84-
from payments.direct_billing import DirectBilling
85-
86-
db = DirectBilling("API_KEY", "API_SECRET", True, "SERVICE_ID") # True stands for debug mode
87-
88-
sign = db.sign(123, "status", "valuenet", "valuepartner", "control")
89-
```
4+
# Dokumentacja
5+
[Kliknij tutaj](https://docs.simpay.pl/python/?python#wstep)

payments/direct_billing.py

Lines changed: 0 additions & 147 deletions
This file was deleted.

0 commit comments

Comments
 (0)