You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)"
The text was updated successfully, but these errors were encountered:
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)"
The text was updated successfully, but these errors were encountered: