-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
class MpesaAccessToken:
r = requests.get(MpesaC2bCredential.api_URL,
auth=HTTPBasicAuth(MpesaC2bCredential.consumer_key, MpesaC2bCredential.consumer_secret))
mpesa_access_token = json.loads(r.text)
validated_mpesa_access_token = mpesa_access_token['access_token']
just got an error to all the apps I ever used the code
"File "C:\Users\hp\Desktop\Project\EmployNanny\payment\mpesa_Credentials.py", line 20, in
class MpesaAccessToken:
File "C:\Users\hp\Desktop\Project\EmployNanny\payment\mpesa_Credentials.py", line 25, in MpesaAccessToken
mpesa_access_token = json.loads(r.text)"
Metadata
Metadata
Assignees
Labels
No labels