https://github.com/ivall/lvlup-sdk-python
lvlup payments
https://github.com/ivall/lvlup-sdk-python
Last synced: 5 months ago
JSON representation
lvlup payments
- Host: GitHub
- URL: https://github.com/ivall/lvlup-sdk-python
- Owner: ivall
- License: mit
- Created: 2020-05-18T15:13:48.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T16:38:15.000Z (over 4 years ago)
- Last Synced: 2024-12-23T04:21:01.800Z (7 months ago)
- Language: Python
- Homepage: https://minecraft-lista.pl
- Size: 28.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lvlup payments
## Examples
#### Importing
```pip install git+https://github.com/ivall/lvlup-sdk-python#egg=lvluppayments```
```python
from lvluppayments import Payments
```
#### New instance
```python
payment = Payments('api_key', 'sandbox') # sandbox or production in arg2
```
#### Payments
```python
payment.payments(10) # here 10 is limit of taked payments
```
#### Balance
```python
payment.balance()['balancePlnInt'] # 'balancePlntInt' returns e.g 80085, when 'balancePlnFormatted' returns "800,85 PLN"
```
#### Transaction status
```python
payment.is_paid('VMBY3T510CV5FFMB') # returns boolean, true if paid, false if not
```
#### Create payment
```python
payment.create_payment(12.55, 'redirectUrl', 'webhookUrl') # only amount is required
```