A Python wrapper for the NOWPayments API, allowing easy integration with the NowPayments platform in Python applications. The api call descriptions are from the official documentation.
Make sure you have Python and pip
installed. Install by running:
pip install nowpayments-api
-
Obtain your NowPayments API key.
- From NowPayments Dashboard or
- From NowPayments Sandbox Dashboard
-
Create an instance of the NowPaymentsAPI class based on your API key:
# Production
from nowpayments_api import NOWPaymentsAPI
api_key = 'YOUR_API_KEY'
nowpayments = NOWPaymentsAPI(api_key)
status = nowpayments.status()
# Sandbox
from nowpayments_api import NOWPaymentsAPI
api_key = 'YOUR_SANDBOX_API_KEY'
nowpayments = NOWPaymentsAPI(api_key, sandbox=True)
status = nowpayments.status()
This project is under active development. Below are the implemented API methods
- GET API Status
- POST Auth
- GET Available Currencies
- GET Available Currencies Full / Detailed
- GET Available Currencies Checked
- POST Create invoice
- POST Create payment
- POST Create payment by invoice
- POST Update payment estimate
- GET Estimate price
- GET Payment Status
- GET List of payments
- GET Minimum payment amount
TBA
TBA
TBA
For more details on available API methods and parameters, refer to the NowPayments API Documentation.
Contributions are welcome!
If you find any issues or have suggestions for improvements, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.