Sberbank
========
Installation
-----------
1. Add "sberbank" to your INSTALLED_APPS settings:
```python
INSTALLED_APPS = [
...
'sberbank',
]
```
2. Add merchants params to your settings:
```python
MERCHANTS = {
%merchant_id%: {
'username': %merchant_username%,
'password': %merchant_password%,
'success_url': %default_success_url%
}
}
```
3. Add callback url to you urls.py:
```python
urlpatterns = [
...
url('/sberbank', include('sberbank.urls'))
]
```
Sberbank
========
Installation
-----------
1. Add "sberbank" to your INSTALLED_APPS settings:
```python
INSTALLED_APPS = [
...
'sberbank',
]
```
2. Add merchants params to your settings:
```python
MERCHANTS = {
%merchant_id%: {
'username': %merchant_username%,
'password': %merchant_password%,
'success_url': %default_success_url%
}
}
```
3. Add callback url to you urls.py:
```python
urlpatterns = [
...
url('/sberbank', include('sberbank.urls'))
]
```
4. Run `python manage.py migrate` to create models.
Usage
-----------
* Pay
```python
from sberbank.service import BankService
instance = BankService(%merchant_id%)
payment = instance.pay(amount=%amount%)
```
Response:
| name | type | example |
|----- | ---- | ------- |
| payment_id | UUID | UUID('8b7e1798-eb96-402d-ac0e-fa23042d05a7') |
| redirest_url | string | https://3dsec.sberbank.ru/payment/merchants/upravdoma/payment_ru.html?mdOrder=c12f8fae-447c-7853-c12f-8fae0000302b |
* Check payment status:
```python
from sberbank.service import BankService
instance = BankService(%merchant_id%)
status = instance.check_status(%payment_id%)
```
Response:
| name | type | example |
|----- | ---- | ------- |
| status | ENUM | <Status.CREATED: 0> |
| amount | decimal | 190.82 |
| created| datetime | datetime.datetime(2018, 1, 26, 9, 4, 1, 950122) |
| updated| datetime | datetime.datetime(2018, 1, 26, 9, 4, 1, 950122) |
========
Installation
-----------
1. Add "sberbank" to your INSTALLED_APPS settings:
```python
INSTALLED_APPS = [
...
'sberbank',
]
```
2. Add merchants params to your settings:
```python
MERCHANTS = {
%merchant_id%: {
'username': %merchant_username%,
'password': %merchant_password%,
'success_url': %default_success_url%
}
}
```
3. Add callback url to you urls.py:
```python
urlpatterns = [
...
url('/sberbank', include('sberbank.urls'))
]
```
Sberbank
========
Installation
-----------
1. Add "sberbank" to your INSTALLED_APPS settings:
```python
INSTALLED_APPS = [
...
'sberbank',
]
```
2. Add merchants params to your settings:
```python
MERCHANTS = {
%merchant_id%: {
'username': %merchant_username%,
'password': %merchant_password%,
'success_url': %default_success_url%
}
}
```
3. Add callback url to you urls.py:
```python
urlpatterns = [
...
url('/sberbank', include('sberbank.urls'))
]
```
4. Run `python manage.py migrate` to create models.
Usage
-----------
* Pay
```python
from sberbank.service import BankService
instance = BankService(%merchant_id%)
payment = instance.pay(amount=%amount%)
```
Response:
| name | type | example |
|----- | ---- | ------- |
| payment_id | UUID | UUID('8b7e1798-eb96-402d-ac0e-fa23042d05a7') |
| redirest_url | string | https://3dsec.sberbank.ru/payment/merchants/upravdoma/payment_ru.html?mdOrder=c12f8fae-447c-7853-c12f-8fae0000302b |
* Check payment status:
```python
from sberbank.service import BankService
instance = BankService(%merchant_id%)
status = instance.check_status(%payment_id%)
```
Response:
| name | type | example |
|----- | ---- | ------- |
| status | ENUM | <Status.CREATED: 0> |
| amount | decimal | 190.82 |
| created| datetime | datetime.datetime(2018, 1, 26, 9, 4, 1, 950122) |
| updated| datetime | datetime.datetime(2018, 1, 26, 9, 4, 1, 950122) |
Metadata
Release files for sberbank 0.38
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sberbank-0.38-py3-none-any.whl | Python 3 | none | any | Details |
Release files / sberbank-0.38-py3-none-any.whl
| Download URL | sberbank-0.38-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2a8cff6b358c8e13fd2b368063d1f68d353c55a73ddf6a84f557c66756c1888e
|
|
BLAKE2b-256 checksum How to use checksums |
6be2b796a45bde889137975c27e49c87640e9f5072f252df1cbcc10529c49a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |