Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ivall/lvlup-sdk-python

lvlup payments
https://github.com/ivall/lvlup-sdk-python

Last synced: 18 days ago
JSON representation

lvlup payments

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
```