Closed kahlflekzy closed 1 year ago
Update, after installing python-dotenv
, I am now able to use,
>>> from py4paystack.routes import transactions
>>> t = transactions.Transaction(SECRET_KEY)
It appears python-dotenv
does not automatically install when pip install
ing this package. I believe there is a technique to do this, right?
FInally, the documentation says the methods return JSON
, in reality, they return a JSON
string, which can be decoded into a JSON
object in python by the user. Perhaps the documentation should state this more explicitly.
I have fixed the issues, the imports were as a result of mistake in the documentation.Thank you Kahlflekzy for using my program. Update and enjoy.
Hello, thank you for the great job creating this library.
I have run into some errors without having gone deep. Particularly, I was unable to import
Transaction
andPaystack
. Below are the errors I get.Case 1
from py4paystack.routes import Transaction
Case 2
from py4paystack import Paystack
To reproduce,
venv
pip install py4paystack
python
shell, run,from py4paystack.routes import Transaction
On a probably related note, running
from py4paystack.routes import transactions
yields an errorNo module named 'dotenv'
. I think this module should be included in the package requirements if it is needed.