-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Klynox/development
Development
- Loading branch information
Showing
10 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,7 @@ | |
|
||
**/.DB_Store | ||
**/.DS_Store | ||
|
||
# Generated files/dirs | ||
dist | ||
*.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# pycoinpayments | ||
================================ | ||
|
||
Overview | ||
-------- | ||
Python API client for the `CoinPayments <https://www.coinpayments.net>` | ||
|
||
Note: This is not the official python client for the Coinpayments API | ||
|
||
Documentation | ||
------------- | ||
|
||
Please see https://www.coinpayments.net/api.php for the most up-to-date documentation for the Paystack API. | ||
|
||
# Installation | ||
|
||
pip install pycoinpayments | ||
|
||
# Example | ||
You can take a look at the `sample.py` file provided in the repo. | ||
|
||
A basic usage would be: | ||
```python | ||
from pycoinpayments import CoinPayments | ||
|
||
create_transaction_params = { | ||
'amount': 10, | ||
'currency1': 'USDT.BEP20', | ||
'currency2': 'USDT.BEP20', | ||
'buyer_email': 'confiyobo@gmail.com' | ||
} | ||
cp = CoinPayments( | ||
'PrivateKey', | ||
'PublicKey') | ||
|
||
transaction = cp.create_transaction(create_transaction_params) | ||
|
||
if transaction['error'] == 'ok': | ||
print(transaction['amount']) | ||
print(transaction['address']) | ||
else: | ||
print(transaction['error']) | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from pycoinpayments.coinpayments import CoinPayments | ||
|
||
name = "pycoinpayments" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
__title__ = 'python-coinpayments-sdk' | ||
__version__ = '0.0.1' | ||
__title__ = 'pycoinpayments' | ||
__version__ = '1.0.0' | ||
__author__ = 'Klynox' | ||
__license__ = 'MIT' | ||
__copyright__ = 'Copyright 2016. Klynox' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters