-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKG-INFO
63 lines (53 loc) · 1.64 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Metadata-Version: 2.1
Name: poofpy
Version: 1.0
Home-page: https://github.com/kevzy/poofpi.git
Author: VisionX
Author-email: [email protected]
License: MIT
Keywords: poof,api wrapper,crypto,payments,crypto payments,crypto api,payment gateway,crypto payment gateway,free,payment,gateway,sellix,shoppy,poof.io
Description-Content-Type: text/markdown
License-File: LICENSE.txt
# Poof Python API Wrapper
## Installing
```
pip install poofpy
```
### get your api key
1. login to [poof](https://www.poof.io/login)
2. create your api key from [here](https://www.poof.io/developers)
### Examples
#### Set your api key
```python
from poofpy import Poof
client = Poof("your api key here")
```
#### Creating crypto invoice
```python
invoice = client.create_crypto_invoice(10,CryptoCurrencies.Bitcoin,Currency.USD)
print(invoice.payment_link)
```
#### Creating crypto charge
```python
charge = client.create_crypto_charge(10,CryptoCurrencies.Bitcoin,Currency.USD)
print(charge.address)
```
#### Creating fiat invoice
```python
invoice = client.create_fiat_invoice(100,PaymentMethod.Paypal, Currency.USD, "https://www.poof.io", "https://www.poof.io")
print(invoice.payment_link)
```
#### Creating fiat charge
``` python
charge = client.create_fiat_charge(100,PaymentMethod.Paypal, Currency.USD, "https://www.poof.io", "https://www.poof.io")
print(charge.payment_link)
```
#### Getting Balance
```python
obj = client.FetchWalletBalance(CryptoCurrencies.Litecoin)
print(obj.balance)
```
#### Payout
```python
client.create_payout(10,CryptoCurrencies.Litecoin,"Lc9oPPPLkUsjDTAH13wAcPRKJyNj9gydwC")
```